Remote File transfer to EC2 Ubuntu best practice or method with key pair

0

Hello, I have an Ubuntu LAMP webserver in EC2. I have researched that I should be able to use WinSCP with the same key pair I am using with Putty, for the default user ubuntu. However I am getting "No supported authentication methods available (server sent public key)."

I also tried creating a new user and new key pair according to AWS documentation, and that did not work either. Can anyone help me out? Is there a best practice or guide for file uploads to Ec2? I could not find much except what I have tried. Thank you

Barry
asked 6 months ago170 views
1 Answer
0
Accepted Answer

It is possible, the problem is related to Amazon Linux version no longer accepting the old key algorithm when using SFTP https://winscp.net/forum/viewtopic.php?t=32146

Please try generating a new key pair using the algorithm ed25519 and then follow the below instructions to add the key to the server: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/replacing-key-pair.html

To retrieve the public key for pasting into the .ssh/authorized_keys file on the server, you can use WinSCP too: Edit the session -> Advanced -> SSH -> Authentication. Select the new private key file there and then hit the button "Display Public Key"

AWS
answered 6 months ago
profile picture
EXPERT
reviewed 6 months ago
  • Well, actually your answer gave me the idea to try Filezilla, and it worked! So problem solved even though I would prefer WinSCP. Thank you

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions