ssh root login

The page should also say how to enable ssh login and how to make sshd see the change immediately.

Mac OS X (10.7.4)

Posted on Jul 3, 2012 6:21 PM

Reply
5 replies

Jul 13, 2012 6:28 AM in response to daveyostcom

While I agree that directly logging into root is rarely needed thanks to 'sudo', it is possible to give the root account ssh-keygen keys and ssh into the root account WITHOUT needing to enable the root account's password.


root ssh-keygen keys can be useful for remote tasks that need to connect to the system as root for things like remote backups (such as rsync over ssh).

Jul 13, 2012 7:56 PM in response to daveyostcom

If you are using rsync over ssh to the root account, you do not need to give root a password, rather you can create ssh-keygen keys and put the origin system's .ssh/id_rsa.pub into the destination system's /var/root/.ssh/authorized_keys file.


Now you can access the destination system without needing to enable the root password.


If you google ssh keys, or even ssh passwordless logins, you will find lots of examples on how to set this up.

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

ssh root login

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.