Establish SFTP connection

Hi ,

I am trying to connect to a SFTP server on my machine running using
WinSSHD. The port on which it is running is 22. I am unable to make a
connection to this port using ruby Net:sftp and Net:SSH libraries.
Here are both the codes: