/root/.ssh/authorized keys is not working - CentOS 6

Enter Your Query:
Use '%' for wildcards and quotes for "exact phrases"

Top Level » System Level

/root/.ssh/authorized keys is not working - CentOS 6Last Modified: Jul 19, 2011, 2:21 am
We had issues on CentOS 6 getting the ssh keys working (/root/.ssh/id_rsa.pub copied to /root/.ssh/authorized_keys on remote box).
The keys worked fine for non-root users, but did not work for root.

The solution was found to run:

restorecon -R -v /root/.ssh

on the remote box.
Referenced from post #5

© 2018 JBMC Software, Suite 173  3-11 Bellerose Drive, St Albert, AB  T8N 1P7  Canada.  Mon-Fri 9AM-5PM MST