I can able to connect to SFTP site successfully using the following credentials Using the FILEZILLA.exe
Host : 411:216:217:453,
Server Type : SFTP - SSH File Transfer Protocol,
password:(Not required any password to connect)
recently i downloaded RebexSftp-Trial-2.0.3854.0-DotNet2.0, If it works i want to buy the product but am getting the error message "supplied public key was not accepted by the server or user name is incorrect" using the below code:
Am passing the correct user name value
Sftp client = new Sftp();
SshPrivateKey privatekey = new SshPrivateKey(@"C:\Documents and settings\Vision.v1\Desktop\SFTP\smfiles_sshkey_1.ppk",null);
string password = "";
but am not able to connect, am using this component for the first time...
below is the cipher information:
SshCipher cipher = client.Session.Cipher;
Host key algorithm: DSS
Key exchange algorithm:
Incoming MAC algorithm: SHA1
Incoming cipher: AES
Outgoing MAC algorithm: SHA1
Outgoing cipher: AES
Summary: SSH 2.0,
aes128-ctr/aes128-ctr, SH A1/SHA1
A supplied public key was not accepted by the server or the user name is incorrect.
BELOW IS THE LOG FILE INFORMATION:
2011-02-02 10:53:20.288 Opening log file. 2011-02-02 10:53:20.882 ERROR Sftp(1) Info: Rebex.Net.SshException: A supplied public key was not accepted by the server or the user name is incorrect. at Rebex.Net.SshSession.cCIjvV(String , String , SshPrivateKey , SshGssApiCredentials ) at Rebex.Net.SshSession.Authenticate(String userName, String password, SshPrivateKey privateKey) at Rebex.Net.Sftp.Login(String userName, String password, SshPrivateKey privateKey
Please advise me, if need to do any changes in the code...
Thaks in advance....