Root user can't use a key in Ubuntu 8.04?
In sshd_config, relevant code:
RSAAuthentication yes
PubkeyAuthentication yes
# AuthorizedKeysFile %h/.ssh/authorized_keys
PermitRootLogin yes
AllowUsers pshields root
Then I saved the public key in /root/.ssh/authorized_keys
However, though my admin login works, the root login denies my key. Any ideas why?
3 Replies
AuthorizedKeysFile %h/.ssh/authorized_keys
2. Restart SSH.
/etc/init.d/ssh restart
See if this works…..