host1#
mkdir /root/.ssh
host1#
vi /etc/ssh/sshd_config
PermitRootLogin yes
StrictModes no
host1#
service ssh restart
host2#
id
uid=0(root) gid=0(root)
host2#
ssh-keygen -t dsa
host2#
scp $HOME/.ssh/id_dsa.pub root@jsesun32:/root/.ssh/
Are you sure you want to continue connecting (yes/no)?
yes
host1#
cat /root/.ssh/id_dsa.pub > /root/.ssh/authorized_keys
host2#
ssh host1 pwd
/root
Comments:
Maybe not the best idea. But this is what I did to provide SSH root access with no password.