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
已提问 7 个月前188 查看次数
1 回答
0
已接受的回答

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
已回答 7 个月前
profile picture
专家
已审核 7 个月前
  • 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

您未登录。 登录 发布回答。

一个好的回答可以清楚地解答问题和提供建设性反馈,并能促进提问者的职业发展。

回答问题的准则