SSH using the same ke
I SSH into a server from my windows partition using putty. The connection
requires a private key that is in my widows partition. This all works fine.
Now, How can I do same from my linux partition? Can I copy the key to my linux partition somewhere so I can connect from my linux partition as well? Or do I need to setup separate public/private key for my linux partition?
Thanks in advance for your help.
Yes you can use the same private key from your windows partition. You need to copy it over to your Linux partition into ~/.ssh/
Then run this command
Detailed information about setting up ssh keys can be found here:
cat your_private.key >> ~/.ssh/authorized_keys
How to setup automatic login with ssh without a password | magicmonster.com
Thank you for your post.
It did not work:
Permission denied (publickey,gssapi-with-mic).
There were already to files under ~/.ssh/.
so, is that why it is failing?
Copy the id_rsa from your windows machine and copy the contents of the id_rsa file to the ~/.ssh/authorized_keys and check the permissions are correct.