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
gefragt vor 7 Monaten188 Aufrufe
1 Antwort
0
Akzeptierte Antwort

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
beantwortet vor 7 Monaten
profile picture
EXPERTE
überprüft vor 7 Monaten
  • 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

Du bist nicht angemeldet. Anmelden um eine Antwort zu veröffentlichen.

Eine gute Antwort beantwortet die Frage klar, gibt konstruktives Feedback und fördert die berufliche Weiterentwicklung des Fragenstellers.

Richtlinien für die Beantwortung von Fragen