Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

I am running OpenSSH server on my Windows XP machine. When I log in from a remote machine using PuTTY or any other ssh client, I am unable to see any of my user-level environment variables from the shell session. I see only the global ones.

Do I need to modify any settings for the remote session to gain access to all the windows environment variables?

share|improve this question
    
For now, I'm going to move some of the user variables to global scope, but I'm still looking for a better solution. –  Phanindra K Jan 8 '10 at 3:50

1 Answer 1

up vote 0 down vote accepted

It sounds like the OpenSSH service is running as the LOCAL SYSTEM or NETWORK accounts. Find the service in the Services control panel (Start -> Run: services.msc) and right-click + choose Properties. On the Log On tab, change the service to run under your account.

Warning: This may cause all SSH sessions to use your account in authenticating. This may not actually be a good thing, but if you are the only user it probably doesn't matter.

share|improve this answer
    
Thanks for the tip. I tried it, but the service is failing to start after I ask it to logon with my domain account. This is the error that I see: "Could not start the OpenSSH Server service on Local Computer. Error 1067: The process terminated unexpectedly." –  Phanindra K Jan 8 '10 at 3:45

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.