Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: OpenSSH: Dev

Env var for options/config

 

 

OpenSSH dev RSS feed   Index | Next | Previous | View Threaded


petesea at bigfoot

Apr 21, 2009, 12:27 PM

Post #1 of 2 (658 views)
Permalink
Env var for options/config

Is there any way to define openssh options via an env var?

Something like:

SSH_OPTIONS='-oBatchMode=yes ...'

or

SSH_CONFIG=/path/to/alternate/ssh_config

The reason I'd like to be able to use this is so I can override certain
options without interfering with the users normal configuration file. In
the case of commands that indirectly call ssh, like cvs, there's no way to
define specific options on the command line, so the only choices are to
change the users ssh config file or create a wrapper script for ssh.
Setting an environment variable is (IMO) just more clean and transparent.

If there isn't currently an environment variable, is there any chance this
could be added in some future release? If so, I think the "SSH_OPTIONS"
env would be the most flexible, since you could always simulate the
"SSH_CONFIG" approach using "SSH_OPTIONS=-F/path/to/config".

It would also provide a very easy way to help debug authentication issues
with cvs, eg:

$ SSH_OPTIONS='-v' cvs checkout ...
_______________________________________________
openssh-unix-dev mailing list
openssh-unix-dev [at] mindrot
https://lists.mindrot.org/mailman/listinfo/openssh-unix-dev


peter at stuge

Apr 21, 2009, 11:01 PM

Post #2 of 2 (614 views)
Permalink
Re: Env var for options/config [In reply to]

petesea [at] bigfoot wrote:
> Is there any way to define openssh options via an env var?

No.


> is there any chance this could be added in some future release?

I don't know.. I don't think any of the developers would like to do
it. But you can always create a patch and file it in the tracker.


//Peter
_______________________________________________
openssh-unix-dev mailing list
openssh-unix-dev [at] mindrot
https://lists.mindrot.org/mailman/listinfo/openssh-unix-dev

OpenSSH dev RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.