SSH connection using ECDSA key type (wodSFTP / wodSFTP.NET / wodSFTPdll)
Hello,
I can make a successful SSH connection (with private/public key) between a client application (Visual Studio on Windows 7) and a HP-UX server, using RSA key type and wodSFTP.dll.
But, using ECDSA key type, the SSH connection doesn't work. Moreover, I do not see anything in server syslog file.
Here's the code:
SFTPGetconnection(LPCTSTR pszDest, LPCTSR pszUname, LPCTSTR pszPsw) throw(...)
{
_bstrs_t fNamePriv = "C:\\Windows\\Raptor\\ .... "; // file name with private key
handle = Sftp_Create( ......) ;
Sftp_SetBlocking(handle, 1);
Sftp_SetHostname(handle, (char *) pszDest);
Sftp_SetLogin(handle, (char *) pszUname);
Sftp_SetPort(handle, 22);
// open the file with private key
long auth = Sftp_SetAuthentication(handle, AuthenticationsEnum::authPubkey);
long i = Sftp_LoadPrivateKey(handle, fNamePriv, (char *) pszPsw);
long j = Sftp_Connect(handle);
....
}
What changes should be made in order to use any key type (RSA/ECDSA) ?
Regards,
Mariana
Complete thread:
- SSH connection using ECDSA key type - Mariana, 2017-02-22, 14:16
- SSH connection using ECDSA key type - Jasmine, 2017-02-22, 15:26
- SSH connection using ECDSA key type - Mariana, 2017-02-22, 15:42
- SSH connection using ECDSA key type - Jasmine, 2017-02-22, 16:16
- SSH connection using ECDSA key type - Mariana, 2017-02-22, 16:20
- SSH connection using ECDSA key type - Jasmine, 2017-02-22, 16:24
- SSH connection using ECDSA key type - Mariana, 2017-02-22, 16:36
- SSH connection using ECDSA key type - Jasmine, 2017-02-22, 16:38
- SSH connection using ECDSA key type - Mariana, 2017-02-22, 16:58
- SSH connection using ECDSA key type - Jasmine, 2017-02-22, 17:00
- SSH connection using ECDSA key type - Mariana, 2017-02-23, 14:45
- SSH connection using ECDSA key type - Jasmine, 2017-02-23, 19:12
- SSH connection using ECDSA key type - Jasmine, 2017-02-23, 19:34
- SSH connection using ECDSA key type - Mariana, 2017-02-27, 09:08
- SSH connection using ECDSA key type - Jasmine, 2017-02-27, 09:15
- SSH connection using ECDSA key type - Mariana, 2017-02-27, 14:07
- SSH connection using ECDSA key type - Jasmine, 2017-02-27, 15:34
- SSH connection using ECDSA key type - Mariana, 2017-02-27, 14:07
- SSH connection using ECDSA key type - Jasmine, 2017-02-27, 09:15
- SSH connection using ECDSA key type - Mariana, 2017-02-27, 09:08
- SSH connection using ECDSA key type - Jasmine, 2017-02-23, 19:34
- SSH connection using ECDSA key type - Jasmine, 2017-02-23, 19:12
- SSH connection using ECDSA key type - Mariana, 2017-02-23, 14:45
- SSH connection using ECDSA key type - Jasmine, 2017-02-22, 17:00
- SSH connection using ECDSA key type - Mariana, 2017-02-22, 16:58
- SSH connection using ECDSA key type - Jasmine, 2017-02-22, 16:38
- SSH connection using ECDSA key type - Mariana, 2017-02-22, 16:36
- SSH connection using ECDSA key type - Jasmine, 2017-02-22, 16:24
- SSH connection using ECDSA key type - Mariana, 2017-02-22, 15:42
- SSH connection using ECDSA key type - Jasmine, 2017-02-22, 15:26