I’m testing some Linux stuff, and found myself wanting to see if I could easily connect to a PowerShell session on my Windows boxes from a SSH client. It turns out it’s a lot easier than first anticipated!
First, I went and had a look at CygWin, which includes an openSSH server, but that didn’t get me anywhere. The results of any PowerShell commands simply weren’t returned, and tab-completion didn’t work either.
Then I came across this article (http://www.windowsnetworking.com/articles_tutorials/install-ssh-server-windows-server-2008.html) and that did everything I needed. FreeSSHd (the install is documented in the link above) supports domain user authentication and it also seems a lot faster than cygwin.
A neat trick I found was to replace the standard cmd command shell with PowerShell, like this:
PSRemoting from this session to other computers also works nicely.
Sweet! I have PowerShell through SSH, and it’s May 17th!