PowerShell Remoting Project Home

Thursday, July 13, 2006

How to: Using PowerShell through SSH

It is possible to use PowerShell through SSH. Read the story from The Hive Archive.

But there are certain limitations:
1. You have to install cygwin, sshd and ssh client like putty (Well I can certainly live with that. Actually they are always on my hard drive).
2. No prompt
3. some Raw UI might not work

I am really looking forward to the new version of PowerShell with buildin Remoting function. According to Jeffrey Snover : Our plans for remoting are to leverage WS-MGMT the remoting protocol recently standardized through the DMTF.

Have Fun


Hi all !!

If you try to run powershell scripts in cygwin command line you may expect a black screen if you have the following configuration :
- open the file c:\cygwin\cygwin.bat
- remove the "tty" from the line set "CYGWIN=binmode ntsec"
Then you should be able to execute powershell script in the local system but not yet with ssh.

Then to run Powershell scripts through SSH you have to open the ssh connection with the option "-f" :
> ssh -f my.server.com

or without interactive mode :
> ssh -f administrator@my.server.com "powershell mycommand.exe"

Hope it will help some of you !!

(I don't know how to pass the option -f to putty, so it doesn't work with putty)
Oes Tsetnoc one of the ways in which we can learn seo besides Mengembalikan Jati Diri Bangsa. By participating in the Oes Tsetnoc or Mengembalikan Jati Diri Bangsa we can improve our seo skills. To find more information about Oest Tsetnoc please visit my Oes Tsetnoc pages. And to find more information about Mengembalikan Jati Diri Bangsa please visit my Mengembalikan Jati Diri Bangsa pages. Thank you So much.
Oes Tsetnoc | Semangat Mengembalikan Jati Diri Bangsa

Post a Comment

<< Home