<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div>This is usually the most common problem.  </div><div><br><div><div>On Nov 1, 2010, at 13:02 , Don Hoover wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div>Ok..for some reason I have not having any luck using a ssh key to ssh as root from a RHEL5 box to a RHEL6 system.<br><br>Is there any gotchas?<font class="Apple-style-span" color="#000000"><font class="Apple-style-span" color="#144FAE"><br></font></font></div></blockquote><div><br></div>Did you check the file permissions on the .ssh and .ssh/authorized_keys?<div><br></div><div>Make sure they are not readable by "other" or "group"</div><div><br></div><div><div>ls -ld .ssh/</div><div>drwx------. 2 root root 4096 Oct 19 07:55 .ssh/</div></div><div><div>ls -ld .ssh/authorized_keys </div><div>-rw-------. 1 root root 1776 Oct 19 07:55 .ssh/authorized_keys</div></div><div><br></div><blockquote type="cite"><div>I even generated a new ssh key on the RHEL6 box, copied the id_rsa file to the RHEL5 box, and added the public to the RHEL6 authorized_keys file and still the RHEL6 box will not allow the key.<br></div></blockquote><div><br></div><div>You should probable NOT put the private key on the server you are sshing INTO.  the private key should really be only on the client.</div></div><div><div><br></div><br class="Apple-interchange-newline">
</div>
<br></div></body></html>