I have Linux mint on my pc.
I have a public/private key pair to ssh into my router without having to type the password.
It works on Windows using putty, but Mint isn’t when I run it from terminal.
ssh -i privkey.ppk <a href="https://getridbug.com/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="beccd1d1cafe8f8e908f8c908f908f">[email protected]</a>
Answers:
Thank you for visiting the Q&A section on Magenaut. Please note that all the answers may not help you solve the issue immediately. So please treat them as advisements. If you found the post helpful (or not), leave a comment & I’ll get back to you as soon as possible.
Method 1
You need to convert keys generated by putty to a form that can be used by openssh.
There are several good answers explaining various ways of doing this at https://stackoverflow.com/questions/2224066/how-to-convert-ssh-keypairs-generated-using-puttygenwindows-into-key-pairs-use
All methods was sourced from stackoverflow.com or stackexchange.com, is licensed under cc by-sa 2.5, cc by-sa 3.0 and cc by-sa 4.0