0 votes
by (150 points)
edited

Hi,

What is the best practice for setting a port in Rebex SFTP? ie. Let's say it is 2700, not 22. Do I just set the hostname as "sftp.mywebsite.com:2700"?

1 Answer

0 votes
by (13.0k points)
edited
 
Best answer

Try using following code:

Sftp client = new Sftp();
client.Connect("sftp.mywebsite.com",2700);
...
client.Disconnect();

You may find interesting following SFTP tutorial:

http://www.rebex.net/sftp.net/tutorial-sftp.aspx

...