I'm unable to ssh without a password for some reason on a new CentOS box.
I've tried following these guides:
- http://linuxproblem.org/art_9.html
- http://www.thegeekstuff.com/2008/11/3-steps-to-perform-ssh-login-without-password-using-ssh-keygen-ssh-copy-id/
But neither are working. I even checked my /etc/ssh/sshd_config
file. PubkeyAuthentication yes
was originally commented out so I uncommented that line and restarted sshd but still to no avail. Any thoughts of anything else that could be missing?
I'm trying to ssh from server A to server B as root. Thus, logged in as root on one box, then ssh to the next as root without being prompted for a password.
UPDATE
I ran a ssh -v ...
but cannot copy/paste into here. Everything looked good until this line:
debug1: Next authentication method: gssapi-with-mic
debug1: Unspecified GSS failure. Minor Code may provide more information
Unknown code krb5 195
Best Answer
A small how-to for public key based authentication for CentOS/Red Hat/etc...
On the SSH client:
On the SSH server:
Public key based authentication should now work.