Enabling root SSH access for OSX



  • To enable root SSH access on an OSX computer follow the process below

    First ssh into the target computer as the local admin account

    ssh [email protected]
    su adminAccount
    Admin Account Password
    sudo su -
    sudo vi /etc/ssh/sshd_config

    Edit the below

    #PermitRootLogin prohibit-password

    To

    PermitRootLogin yes

    wq
    Disconnect

    With SSH enabled for the root account, you can do more things, like remotely rsync a users profile to a new workstation. Obviously this poses some risks, which is why ssh for root is disabled by default.