Suppose that I had set the root password before with ssh
key. Hereinafter, I want to let the root without password. Is there a way to do that?
Suppose that I had set the root password before with ssh
key. Hereinafter, I want to let the root without password. Is there a way to do that?
In Ubuntu the root account has no password but is locked by default, so that you can not log in as root using a password. If you paste your public key (
~/.ssh/id_rsa.pub
) into root's authorized_keys file (/root/.ssh/authorized_keys
) then you can log in via 'ssh' as root without needing a password.Yes you can set the root without password to SSH login without password, but it's highly not recommended, user other user then use su to become root.