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


On 5/1/2010 1:50 AM, Vincent Pelletier wrote:
Hi.

I've just installed cygwin on winxp, for some wine comparative testing.
To make it easier for me, I installed ssh package and started sshd service so
I could do as much as possible from my main Linux box.

But I noticed the following difference:
- on a windows cygwin term:
   $ cmd /c echo "%ProgramFiles%"
   C:\Program Files
- on an ssh session:
   $ cmd /c echo "%ProgramFiles%"
   %ProgramFiles%
which breaks the script[1] I'm testing.

Is it a bug ?

No. 'ssh' is a secure shell so it has a minimal environment.


If not, how can I make ssh session get the same environment variables as a
"regular" (ie, not remote) cygwin terminal ?

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.

--
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


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