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

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
    
bsonposh.com/archives/338 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

2 Answers 2

up vote 2 down vote accepted

So far this is best way for me:

http://www.powershellinside.com/powershell/ssh/download.aspx

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

example:

Cygwin - http://www.cygwin.com/

Cygwin SSHD howto - http://www.noah.org/ssh/cygwin-sshd.html

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: google.ge/… –  GioMac Jun 13 '12 at 13:35

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.