0 votes
by (900 points)
edited

Best way to to Connecting Sftp server with securely.

I already read about it in http://www.rebex.net/sftp.net/features/connecting.aspx page.

I am new for Sftp protocol. Can you give more info to Connect to sever securely like ftps protocol.

Any example.

Applies to: Rebex SFTP

1 Answer

0 votes
by (58.9k points)
edited

SFTP protocol runs over SSH channel and the SFTP protocol is secured by default (unlike the FTP protocol, which is still often used over unsecured TCP). Please check our differences between FTP, FTP/SSL and SFTP protocol article to learn more.

This means that even the following simple code is sufficient:

// create SFTP client instance
var sftp = new Rebex.Net.Sftp();

// connect to a server
sftp.Connect(hostname);

// check sftp.Fingerprint here
...