1

I use Git to generate a key pair. The private key has this format with no extension (probably the .pem format):

-----BEGIN OPENSSH PRIVATE KEY-----
...
-----END OPENSSH PRIVATE KEY-----

I want to login to my server ([email protected]) with my private key. WinSCP requires me to convert that key to .ppk format. It now looks like this:

PuTTY-User-Key-File-2: ssh-rsa
Encryption: none
Comment: Ooker@PC
Public-Lines: 9
...
Private-Lines: 21
...
Private-MAC: ...

However after everything is done it shows this error: Not supported authentication methods available (server sent: publickey). I've googled it but it doesn't yield useful answer. However I can still login to my own EC2 instance without problem.

Do you know what's wrong?

5
  • What did you do to make the server recognize the key after you have generated it? Apr 2, 2020 at 8:27
  • It's my technician does it for me. Because we are a volunteering and he's busy, but still responsive to other more important tasks, I assume that everything is setup correctly on his side
    – Ooker
    Apr 2, 2020 at 10:44
  • 2
    Well, it does not look like it is. Apr 2, 2020 at 10:48
  • if the pubkey I sent him is correct, then what can go wrong? I know this is speculative and it's best to just ask him to look at it, I still want to have some insights, so that my request is intriguing to him
    – Ooker
    Apr 2, 2020 at 12:20
  • Can you log in with git's ssh, i.e. might it be a problem converting the key? Is it definitely ubuntu@ and not e.g. ec2-user@ if he's switched to Amazon Linux?
    – Rup
    Apr 15, 2020 at 7:41

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Browse other questions tagged or ask your own question.