SFTP using key pair

pajeffe

2009-06-29 19:50:56

I can't figure out how to use SmartFTP to access my Amazon EC2 host. I normally use ssh or sftp using a key file, as in:

sftp -o IdentityFile=~/.ssh/pk-ec2-keypair.pem ec2-174-129-230-30.compute-1.amazonaws.com

But I don't see any option to specify a key to SFTP. If I just try to FTP over SSH using username and password it fails with:

[14:48:16] SmartFTP v3.0.1033.0
[14:48:16] Resolving host name "ec2-174-129-230-30.compute-1.amazonaws.com"
[14:48:16] Connecting to 174.129.230.30 Port: 22
[14:48:17] SSH-2.0-OpenSSH_4.7
[14:48:17] Starting SSH session. Remote Id: "SSH-2.0-OpenSSH_4.7"
[14:48:17] SSH protocol version reply. Client Id: "SSH-2.0-SmartFTP"
[14:48:17] Computing session key.
[14:48:17] Key Exchange Algorithm: diffie-hellman-group-exchange-sha256
[14:48:17] Key exchange completed.
[14:48:17] Host Key Algorithm: ssh-rsa
[14:48:17] Client to Server Encryption: aes256-ctr
[14:48:17] Server to Client Encryption: aes256-ctr
[14:48:17] Session MAC: hmac-sha1
[14:48:17] Client to Server Compression: zlib@openssh.com
[14:48:17] Server to Client Compression: zlib@openssh.com
[14:48:17] Authentication request. Method: "none"
[14:48:17] Server supported authentications: publickey,gssapi-with-mic
[14:48:17] User authentication failed.
[14:48:17] Client closed the connection.
[14:48:17] Connect failed. Waiting to retry (30s)...

Thanks!

-- Peter

mb

2009-06-29 20:56:36

You can set the keyfile in the SSH dialog in the favorite properties. To access the favorite properties:
1. menu: Favorites -> Edit Favorites
2. Locate your favorite. Look in the Quick Connect folder
3. Right-click on the favorite and select Properties

Regards,
Mat

pajeffe

2009-06-29 21:33:37


You can set the keyfile in the SSH dialog in the favorite properties. To access the favorite properties:

That did it! Thanks for your quick response Mat.

-- Peter