The MacMetro Support Account

Updated

Each Mac MacMetro hosts for you has a hidden admin account called macmetrosupport. A small computer in the rack beside your Mac signs in to it over SSH with one key, and nothing else can sign in to it over SSH.

What It Does

It puts the SSH keys you add in the dashboard on your Mac, runs the installs on the Software page, reads the disk, macOS version and uptime the Mac page shows, and checks the Mac before a Reset.

What Stops Without It

If the account or its key is gone, all four stop. If only its sudo rule is gone, new keys and installs stop. Your Mac keeps running, and keys already on it still work. This happens when the account is deleted, its key is removed from authorized_keys, or /etc/sudoers.d/macmetrosupport is deleted. Some security tools and setup scripts do it.

Turn It Back On

In Terminal on your Mac:

cd "$(mktemp -d)" && curl -fsSLO https://pkgs.macmetro.com/macmetro-restore.pkg && pkgutil --check-signature macmetro-restore.pkg | grep -q Y7MCWF6TY7 && sudo installer -pkg macmetro-restore.pkg -target /

That downloads the package into a new temporary folder, checks it’s signed with the MacMetro Apple Developer ID (team Y7MCWF6TY7), and only then installs it. It’s notarized by Apple too. It runs only on a Mac MacMetro manages, and changes nothing on any other Mac. It puts the account back, creating it again if it was deleted, with its key, its sudo rule and the MacMetro SSH settings. Those settings make SSH take keys only, as on every MacMetro Mac. An account you turned passwords on for with a file of your own keeps them (see Password Sign-In Over SSH). The Mac page shows it’s back within about 20 minutes.

Or email support@macmetro.com and say it’s OK to send it through device management, and support will do it for you.

Check the Key

sudo cat "$(dscl . -read /Users/macmetrosupport NFSHomeDirectory | awk '{print $2}')/.ssh/authorized_keys"

It should print exactly:

ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIIVJ5qw1BTdqDAVAg9O9sP+zJhBuC8zEFoMkgpZLDpVK macmetro-site-box