Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have little experience with Windows systems. Coming from a Linux background I was wondering if there is a way that I can ssh to powershell from a Linux shell?

If this is not possible, is there a key exchange like way to connect from powershell to powershell? I prefer it if I do not need to enter a password for every single server every time.

If this all sounds a bit crazy and there are better ways that windows does this, then feel free to share.

share|improve this question
Powershell has its own remoting technology built in to version 2. Have you looked at it? – uSlackr Jun 13 '12 at 12:38
I know it has a remoting technology in it, but I don't know if it has something like key exchange. – Lucas Kauffman Jun 13 '12 at 12:40
I believe it uses your Windows credentials unless you tell it otherwise. Which would make it invisible to you (no password) much like key exchange. Perhaps you should experiment first. – uSlackr Jun 13 '12 at 12:42
if going between ps to ps then look up get-credentials. The results of this can be securely stored and reused. – tony roth Jun 13 '12 at 13:46 shows a good example of how to do this ps to ps with a key exchange like process. – tony roth Jun 13 '12 at 13:49
up vote 2 down vote accepted

So far this is best way for me:

You can try it first.

share|improve this answer
The name of the company behind it /n can be easily mistaken for a typo. :) – Dmitri Chubarov Jun 13 '12 at 13:34

Install SSH server on windows, then run powershell :)


Cygwin -

Cygwin SSHD howto -

share|improve this answer
Can you install ssh as a service through the $ADMIN share on a remote machine as psexec installs psexesvc? – Dmitri Chubarov Jun 13 '12 at 13:31
I think cygwin installer doesn't support non-GUI install, even non-interactive. But I think there will be other way to run non-popular ssh daemon or opensource SSHD:… – GioMac Jun 13 '12 at 13:35

Your Answer


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.