Passwordless SSH problem - SSH

This is a discussion on Passwordless SSH problem - SSH ; Hi, I am new to linux and I was trying out passwordless SSH to another machine in the network. I did the following steps : 1) did a ssh-keygen -t rsa 2) copied the content in is_rsa.pub and pasted it ...

+ Reply to Thread
Results 1 to 5 of 5

Thread: Passwordless SSH problem

  1. Passwordless SSH problem

    Hi,

    I am new to linux and I was trying out passwordless SSH to another
    machine in the network.

    I did the following steps :

    1) did a ssh-keygen -t rsa
    2) copied the content in is_rsa.pub and pasted it in
    $HOME/.ssh/authorized_keys in the remote machine.

    it is still asking for password while logging in...

    i did not give any passphrase while creating the key... is that a
    problem??

    Kindly help me out..

    Regards,
    Madhu


  2. Re: Passwordless SSH problem

    Bhishma wrote:

    > Hi,
    >
    > I am new to linux and I was trying out passwordless SSH to another
    > machine in the network.
    >
    > I did the following steps :
    >
    > 1) did a ssh-keygen -t rsa
    > 2) copied the content in is_rsa.pub and pasted it in
    > $HOME/.ssh/authorized_keys in the remote machine.
    >


    Make sure that permissions are strict enough for the file and for the .ssh
    directory.

    Regards
    Kimmo Koivisto

  3. Re: Passwordless SSH problem

    Bhishma wrote:
    >
    > i did not give any passphrase while creating the key... is that a
    > problem??
    >


    Not for the problem you're describing. Just remember though that if
    anyone ever gets a copy of that unencrypted private key file, they can
    authenticate as you anywhere where the public key is installed.

    IMO unencrypted private keys are a bad idea. If you want passwordless
    logins, using an encrypted key with ssh-agent is a better idea.

    For the immediate problem, make sure you've added the public key to the
    appropriate authorized_keys file on the server and that the permissions
    on said file are correct. It should be 600.

    HTH

  4. Re: Passwordless SSH problem

    "Bhishma" writes:

    >Hi,


    >I am new to linux and I was trying out passwordless SSH to another
    >machine in the network.


    >I did the following steps :


    >1) did a ssh-keygen -t rsa
    >2) copied the content in is_rsa.pub and pasted it in
    >$HOME/.ssh/authorized_keys in the remote machine.


    A) Look for spelling mistakes. For example, it is id_rsa.pub, not
    is_rsa.pub. You may have made a similar error in typing authorized_keys for
    example.
    What are the permissions on .ssh and on authorized_keys?

    Do ssh -vv remotehost
    to see what it is trying.


    >it is still asking for password while logging in...


    >i did not give any passphrase while creating the key... is that a
    >problem??


    >Kindly help me out..


    >Regards,
    >Madhu



  5. Re: Passwordless SSH problem

    Thanx for the input guys..... will get back incase of trouble..


    Thanx again..


+ Reply to Thread