OpenSSH on Windows and other alternatives

So, I was (playing with - working again) on my SCP based PowerShell script this week. Basically, the scenario was to test things out using a testing facility in Redmond (I will talk about that in my next blog). Anyhow... we didn't readily have access to some Unix servers. So, I ended up installing the Windows version of OpenSSH on a set of Windows Server 2003 64-bit machines. After configuring the OpenSSH service, and tested things out with Putty. I then tried to show off the POC version of the script to a Microsoft engineer.

Yeah... it didn't work... For some reason the OnTransferEnd event my script waits for was not getting fired. At first, we all thought this was a PowerShell 2.0 Eventing issue. But, after some further troubleshooting and a quick overview by Lee Holmes, I found that the OpenSSH service was shutting down the SSH session during the transfer. So... that was why the event was not getting fired.

不管怎样…我真的没有看到任何evident as to why this was occurring. Plus, when I manually performed the file transfer using Putty's SCP utility everything worked just dandy. Not getting anywhere, I turned to Google and performed some searches and quickly found a couple forum posts where the messages strings were talking about OpenSSH on Windows shutting down sessions during automated file transfers.

In several forum posts, I found some vague references to others that have had similar issues. But, in classic fashion, there were no solutions and considering that the Windows version for OpenSSH was last updated on July 2004. I started to look for other options.

After attempting to use Cygwin, and then realizing that didn't work on 64-bit Windows. I settled forcopssh, installed it and found that it worked just fine.

So... I figured that a post was needed for this.

Join the Network World communities onFacebookandLinkedInto comment on topics that are top of mind.

Copyright © 2008Raybet2

IT Salary Survey:The results are in