5

I have issue regarding SSH connection with my server. When i try to connect it results into error:"Bad authentication type(allowed_types=['publickey'])" Thanks

1
  • 1
    What do I do if I'm on a Mac ? Any suggestion ? Commented Oct 28, 2016 at 1:21

3 Answers 3

7

You need to ensure that your private key is in openssh format. With puttygen you can export as Openssh. This worked for me.

Sign up to request clarification or add additional context in comments.

1 Comment

This worked for me. I opened PuTTY Gen and loaded my key. Then I exported it as open SSH by clicking on the "Conversions" menu in PuTTy and selecting "Export SSH Key".
3

Check your username and public key this can cause problem. Attach the private key file with extension .ppk Also verify your connection with putty. Also check for the restriction on server.

2 Comments

Hi, These all things are checked already but having same problem again and again
hi, can you please attach screen shots?
0

FYI, my company uses a Yubikey and so the SSH part can be a bit mysterious. However, walking through a shell login with the yubikey yinit command, to ssh to IP (no password needed here), and finally to connecting mysql (still shell), I attempted to MySQL Workbench a few times with my different passwords to no avail.

Finally, I noticed the "SSH Key File" field and looked up where my .ssh file was -- /Users/myProfile/.ssh/ Set the "id_rsa.pub" file as it and voila!

Everything worked.

Comments

Your Answer

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

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.