AIX

AIX

Connect, learn, share, and engage with IBM Power.

 View Only
  • 1.  ssh without password don't work

    Posted Thu January 06, 2011 06:12 AM

    Originally posted by: DoGaS


    Hello Guru's,

    we use ssh logon without password to collect informations with scripts from our systems.
    But at one host we still need a password to logon.
    The configuration are just like the other hosts.
    There are some suggestion?

    regards
    Chris


  • 2.  Re: ssh without password don't work

    Posted Thu January 06, 2011 02:06 PM

    Originally posted by: mmveiga


    Chris,
    Did you check the permissions on ~/.ssh and ~/.ssh/authorized_keys ? They should be rwx------ (0700) and rw------- (0600) . If that is not the issue, try running ssh -vvv USER@SERVER from the client to look for the possible cause.

    Regards,
    Marcelo.


  • 3.  Re: ssh without password don't work

    Posted Fri January 07, 2011 03:20 AM
      |   view attached

    Originally posted by: DoGaS


    Thanks, i think the permissions are ok. But in the log i don't find the error. Do you have a suggestion?

    drw-r--r-- .ssh
    -rw-r--r-- authorized_keys

    Attachment(s)



  • 4.  Re: ssh without password don't work

    Posted Fri January 07, 2011 05:25 AM

    Originally posted by: lech77


    Please check access permissions for all the elements of the full
    path to authorized_keys file. Make sure that none of the elements
    is writable to anyone else than its owner. Group writable $HOME
    or /home (or any element of the path) will get you into trouble.

    You can also try to run the sshd in debug mode (-ddd), listening
    on a non-standard port (-p xxxx), attempt to log in using the
    public key authentcation and take a good look at the sshd output.


  • 5.  Re: ssh without password don't work

    Posted Sun January 09, 2011 02:00 PM

    Originally posted by: mmveiga


    Chris,
    Are you able to login when you type root's password ? I believe if you don't have rlogin=true for that user you will not be able to SSH, it could also be the PermitRootlogin is set to no on the sshd_config file.

    Regards,
    Marcelo.


  • 6.  Re: ssh without password don't work

    Posted Sat January 08, 2011 08:47 AM

    Originally posted by: Sauravv


    Check the directory permission . the directory .ssh under home should have 700 . the file inside it authorized_keys should have 600 . Hope this helps.