Best way to to Connecting Sftp server with securely.

0 votes
asked Jan 12, 2015 by ganeshspy (900 points)
edited Jan 12, 2015

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
answered Jan 12, 2015 by Tomas Knopp (58,890 points)
edited Jan 12, 2015

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
...