Adding users to Mojave
Thursday May 08 2025 • 10:43 PM
I found this helpful video from CJ over at the Syntax podcast where he goes over some basics about self-hosting and VPS safety measures.
I dusted off my Tab S7+ and reused the SSH keys I had generated last year for GitHub access to login to Mojave.
First, as root I created a new user: $ adduser nyoki
. At the prompt for a new password I provided a different one from the root user and left the default info blank.
Adding SSH key access for nyoki from Tab S7+
Over on Café Quito, I created the .ssh
directory in the new user’s home directory (/home/nyoki
).
Just for fun, I ran $ cat ~/.ssh/id_ed25518.pub
on the tablet and proceeded to manually type the entire SSH key into the /home/nyoki/.ssh/authorized_keys
file.
This worked wonderfully. Like magic, typing ssh nyoki@IP_ADDRESS
on the tablet logged me in without prompting for a password.
Cool.
Adding a new SSH key to access Mojave as nyoki from Café Quito
I’ll be generating a new set of SSH keys for Café Quito to login as nyoki.
First I ran $ ssh-keygen -t ed25519 -a 100
(command taken from tilde.team) and manually wrote the filename and the comment, but the alternative $ ssh-keygen -t ed25519 -a 100 -f ~/.ssh/id_ed25519_custom -C ""
does it all in one line.
I added the public key to nyoki’s /home/nyoki/.ssh/authorized_keys
file. To login by simply typing ssh nyoki@mojave
from my terminal, I edited my local ~.ssh/config
file:
Host mojave
Hostname ID_ADDRESS
User nyoki
IdentityFile ~/.ssh/id_ed25519_mojave
That did the trick.