1.7.5: sshd environment variables

Larry Hall (Cygwin) reply-to-list-only-lh@cygwin.com
Mon May 3 00:41:00 GMT 2010


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.

-- 
Larry Hall                              http://www.rfk.com
RFK Partners, Inc.                      (508) 893-9779 - RFK Office
216 Dalton Rd.                          (508) 893-9889 - FAX
Holliston, MA 01746

_____________________________________________________________________

A: Yes.
> Q: Are you sure?
>> A: Because it reverses the logical flow of conversation.
>>> Q: Why is top posting annoying in email?

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple



More information about the Cygwin mailing list