I ran your code on my OS X machine, and it worked in the way you described that you wanted it to work.
I got a success, I tried an invalid port and got a "connection refused" message, and I tried an invalid host and got an "Invalid argument" message.
Feels like this is an issue with host & port you're trying to connect to, instead of a code probelm.
In reply to Re: test version of ssh from windows
by naunga
in thread test version of ssh from windows
by mariog
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |