ML
    • Recent
    • Categories
    • Tags
    • Popular
    • Users
    • Groups
    • Register
    • Login

    Enabling root SSH access for OSX

    IT Discussion
    osx macos system administration cli command line shell apple mac macos system administration ssh
    1
    1
    1.7k
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • DustinB3403D
      DustinB3403
      last edited by scottalanmiller

      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 AdminAccount@x.x.x.x
      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.

      1 Reply Last reply Reply Quote 2
      • 1 / 1
      • First post
        Last post