This is the mail archive of the cygwin mailing list for the Cygwin project.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: 1.7.5: sshd environment variables

Le 03/05/2010 02:40, Larry Hall (Cygwin) a Ãcrit :

On 5/2/2010 2:33 AM, Vincent Pelletier wrote:
Le dimanche 02 mai 2010 02:52:55, Larry Hall (Cygwin) a Ãcrit :
You can add whatever variables you want and need to a script you can run
as part of the login or just after, depending on your needs.

So my question becomes: Is it possible to get windows environment vars in a shell obtained via ssh (to avoid duplicating their definition in my .bashrc) ? Or is there a way to extend the set of vars sshd lets through to shell (I'm ok with having to name the variables I need, as long as I don't have to set their value manually) ?

You can get the environment variables using 'env' (or 'set' in 'cmd.exe') prior to invoking 'ssh'. You can then trim down the list to those that you want. Putting those in a file that you can invoke shouldn't be hard.

around february 19, there was a discussion about to limit ssh environment variables not including some windows ones !

since then, I use the following script to set the missing ones at connection time...

you may comment the lines containing SECONDS.

it based on Kurt Franke's similar script in the idea.


Cyrille Lefevre

Description: Text document

Problem reports:
Unsubscribe info:

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]