How to successfully connect AWS EC2 with WS_FTP using SFTP/SSH
Posted on 2016-11-19
Hi. I'm trying to get WS_FTP Pro 12.5.1 to connect to my AWS EC2 instance using SFTP/SSH. No matter what I try, it fails to get through.
I have a key pair on AWS for this instance (generated by AWS) and its location on my Windows 7 Pro desktop, my username and pw (to access my instance via the FF browser), the host name, and the port has to be 22. I have the public key, but WS_FTP doesn't ask for this; instead it asks for the SSH key pair name which I selected.
Having entered these it connects to the host:
Connecting to [ip address]:22
Waiting for Server Response
Server Welcome: SSH-2.0-OpenSSH_6.6.1
Client Version: SSH-2.0-WS_FTP-12.5.1-0
RSA Signature Verified
Session Keys Created
New Client->Server ciphers in place
Completed SSH Key Exchange. New Keys in place
Trying authentication method: "publickey"
Server rejected public key
Failed SSH User Authentication
SSH Transport closed
Clearly, AWS rejected the public key.
Any ideas as to what I did wrong and how to correct this?