ssh-keygen key creation

This forum is not monitored by the SmartFTP staff. If you have a license please contact technical support by email.
Post Reply
2BrightSparks
Posts: 44
Joined: Thu Feb 23, 2006 5:41 am

ssh-keygen key creation

Post by 2BrightSparks » Sun Jan 24, 2010 2:00 am

Hi, does anyone know how to create a valid SFTP key for use with the SmartFTP library (V1.5.29.0) using ssh-keygen on Debian? We have a customer who says using "ssh-keygen -t rsa" creates a key file that doesn't work (LoadFile into PrivateKey gives an "Unspecified error" exception in Delphi). However, we don't use Debian so don't know anything about ssh-keygen. Thanks

mb
Posts: 12030
Joined: Thu Oct 11, 2001 1:24 pm
Display name: Mat (SmartFTP)
Contact:

Re: ssh-keygen key creation

Post by mb » Sun Jan 24, 2010 7:34 am

Please tell your customer to send us an example keyfile.

Thanks
Mat

2BrightSparks
Posts: 44
Joined: Thu Feb 23, 2006 5:41 am

Re: ssh-keygen key creation

Post by 2BrightSparks » Sun Jan 24, 2010 7:45 am

Will do, thanks. I'll send it to the support email address once I receive it.

2BrightSparks
Posts: 44
Joined: Thu Feb 23, 2006 5:41 am

Re: ssh-keygen key creation

Post by 2BrightSparks » Sun Jan 24, 2010 11:45 pm

It seems the problem was as simple has him using the wrong password for the key. However, this begs the question as to how does the program know that that is the problem? i.e. where do I get the error code from with LoadFile?

mb
Posts: 12030
Joined: Thu Oct 11, 2001 1:24 pm
Display name: Mat (SmartFTP)
Contact:

Re: ssh-keygen key creation

Post by mb » Mon Jan 25, 2010 1:15 am

The next build should return E_KEYFILE_PASSWORD in this case.

Post Reply