Problem with passwordless SSH

Discussion in 'OT Technology' started by trouphaz, Nov 14, 2008.

  1. trouphaz

    trouphaz New Member

    Joined:
    Sep 22, 2003
    Messages:
    2,666
    Likes Received:
    0
    I'm trying to setup server A and B so that a user signed in on one host as sybase can ssh to the other without a password, but it isn't working. I am able to get it working with no problems for the root account, but it doesn't seem to work nice with the non-root account.

    As the user I tried creating a DSA key with "ssh-keygen -t dsa" and accepting all defaults for the rest (blank passphrase). Then, I took the contents of the id_dsa.pub file and added it to the end of the ~sybase/.ssh/authorized_keys file. No use.
    I moved the DSA keys and created RSA keys and did the same steps. No go.

    Like I said though, it works perfectly fine with the root account.

    Hosts are Solaris 10 with the included ssh and sshd. It is patched up until pretty recent, maybe a month old. Both machines were made with the same jumpstart image.

    Has anyone seen this behavior before?
     
  2. crontab

    crontab (uid = 0)

    Joined:
    Nov 14, 2000
    Messages:
    23,446
    Likes Received:
    12
    what does ssh -v(vvv) show?

    i've ran into problems setting this up from time to time and it was always something that i missed.

    there are a bunch of steps for this setup, i would double check everything, directory/file permissions, recreate dsa or rsa keys, known_hosts lists, etc....
     
  3. trouphaz

    trouphaz New Member

    Joined:
    Sep 22, 2003
    Messages:
    2,666
    Likes Received:
    0
    lol... the ssh -v helped a lot. i didn't know about that. anyway, if the account is locked, it won't allow you to ssh in without a password. funny because sudo still allowed them to switch to that user (and su - sybase works too).

    thanks! i'm an idiot.
     

Share This Page