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
feita há 7 meses187 visualizações
1 Resposta
0
Resposta aceita

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
respondido há 7 meses
profile picture
ESPECIALISTA
avaliado há 7 meses
  • 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

Você não está conectado. Fazer login para postar uma resposta.

Uma boa resposta responde claramente à pergunta, dá feedback construtivo e incentiva o crescimento profissional de quem perguntou.

Diretrizes para responder a perguntas