PDA

View Full Version : FlashFXP with Amazon EC2 SSH keys Part2


oxign
04-02-2015, 01:17 AM
Hi Guys,

This subject has already been discussed here https://oss.azurewebsites.net/forum/flashfxp/general-discussion/16263-flashfxp-amazon-ec2-ssh-keys.html

I've set-up an AWS EC2 instance to install a Wordpress Blog. All good so far. But I wanted to access it via FTP so I followed the instructions as per above (both versions, Admin and Cog01) but no joy. I've tried multiple ways of saving the file names and also exporting from Puttygen. I'm assuming the private key is ok and the issue is the public key. Any ideas? Thanks. Steve.

The error is

[R] Auth Type: Public Key
[R] Authentication failed [Public Key]
[R] SSH Error: failed to negotiate authentication method [Public Key]
[R] SSH Connection closed

bigstar
04-02-2015, 06:57 AM
When you setup an EC-2 instance in AWE it asks you to select an existing key pair or create a new one as shown in the image below.

I created a new key pair named EC-2 and then downloaded it to my computer.


https://oss.azurewebsites.net/images/forum/AWE-EC2-Key-Pair.png


I launched the instance and waited for it to enter the running state.

Then from within FlashFXP I added the site to the Site Manager.

https://oss.azurewebsites.net/images/forum/flashfxp-site-manager-awe.png



I set the "Login Type" to "Key Based" then clicked on the Key Manager button to the right of the Private Key field.

Import my key pair as shown below

https://oss.azurewebsites.net/images/forum/flashfxp-key-manager-awe.png


Its important to make sure you select RSA/DSA key for SFTP, select the private key file and click the Save button.

Now back in the Site Manager select the Key Pair named AWE EC-2

Save the site profile and connect


Connecting to AWE EC-2 -> IP=52.5.7.12 PORT=22
Connected to AWE EC-2
Host key algorithm ssh-RSA, size 2048 bits.
Fingerprint (MD5): 06:59:f4:77:7f:a6:1e:c8:f1:16:50:17:b7:06:26:98
Key exchange: diffie-hellman-group-exchange-sha256. Session encryption: aes128-ctr, MAC: hmac-sha2-256, compression: none.
Auth Type: Public Key
Authentication succeeded
SSH Connection open
Connection established with OpenSSH_6.2 (SFTP v3)
SFTP Connection Ready

oxign
04-02-2015, 05:40 PM
Once I saw the user name you had used I realized my mistake. I'm in and all is good. Thanks very much for your help.