Port 22 is a default port for SFTP protocol.
Using the Rebex SFTP component, you can simply connect the following way:
using Rebex.Net;
// ...
// create client object
Sftp client = new Sftp();
// connect to the server
client.Connect("servername.com");
// for connecting to non-default port, use the following alternative
// client.Connect("servername.com", 1234);
// authenticate
client.Login("username", "password");
// browse directories, transfer files, etc...
// ...
// disconnect
client.Disconnect();
For more information about using the component, see the SFTP tutorial page.