Find the answer to your Linux question:
Results 1 to 4 of 4
Hello, 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 ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Aug 2010
    Posts
    27

    SSH using the same ke


    Hello,

    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.

  2. #2
    Just Joined! jr0sco's Avatar
    Join Date
    Aug 2010
    Location
    Australia
    Posts
    41
    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

    Code:
    cat your_private.key >> ~/.ssh/authorized_keys
    Detailed information about setting up ssh keys can be found here:

    How to setup automatic login with ssh without a password | magicmonster.com

    JC

  3. #3
    Just Joined!
    Join Date
    Aug 2010
    Posts
    27
    Hello,
    Thank you for your post.
    It did not work:
    Permission denied (publickey,gssapi-with-mic).

    There were already to files under ~/.ssh/.
    They are:
    id_rsa id_rsa.pub

    so, is that why it is failing?

  4. $spacer_open
    $spacer_close
  5. #4
    Just Joined! jr0sco's Avatar
    Join Date
    Aug 2010
    Location
    Australia
    Posts
    41
    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.

    JC

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •