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
已提問 6 個月前檢視次數 179 次
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
已回答 6 個月前
profile picture
專家
已審閱 6 個月前
  • 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

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南