How to Get a Public Key onto Nexus
Use a machine that already has SSH access to Nexus (Atlas or the Mac laptop) as a relay.
Step 1: Generate a Key on the New Machine
ssh-keygen -t ed25519
Accept the default file location (~/.ssh/id_ed25519) and optionally set a passphrase.
Step 2: Transfer the Public Key to a Trusted Machine
Email or copy ~/.ssh/id_ed25519.pub to a machine that already has SSH access to Nexus.
Step 3: Copy the Public Key to Nexus
From the trusted machine:
scp ~/id_ed25519.pub matt@192.168.1.226:~
Step 4: Add the Key to authorized_keys
SSH into Nexus from the trusted machine, then append the key and clean up:
ssh matt@192.168.1.226
cat ~/id_ed25519.pub >> ~/.ssh/authorized_keys
rm ~/id_ed25519.pub
The new machine can now SSH directly into Nexus.