Click here to Skip to main content
15,891,513 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
How to connect to SFTP using RSA/DSA Algorithm in C#?


I want to connect to SFTP. Connectivity has to be done with authentication and encryption using RSA(1024 bits and 2048 bits)
DSA Algorithm(1024 bits) in C#.Currently I am connecting via SFTP Hosted Server Name and port and then Logging is done via the SFTP User credentails.

Current core code is as below:
C#
objSFTP.Connect(sSFTPHost[0], int.Parse(sSFTPHost[1]));
                   objSFTP.Login(sSFTPHost[2], sSFTPHost[3]);


What I have tried:

C#
objSFTP.Connect(sSFTPHost[0], int.Parse(sSFTPHost[1]));
                   objSFTP.Login(sSFTPHost[2], sSFTPHost[3]);
Posted
Updated 8-Aug-16 21:47pm
v2
Comments
David_Wimbley 9-Aug-16 10:52am    
Your code isnt very complete...we don't know what objSFTP is. Are you using a 3rd party library? Remember we can't see your computer so the more detail you provide, the more likely an answer that is relevant to your problem you will receive.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900