macOS ยท Local Network

SSH Into Another Mac

Three steps. Two are on her Mac, one is on yours. After that, ๐Ÿ‘จโ€๐Ÿ’ป takes over completely.

๐Ÿ‘ฉโ€๐Ÿ’ป Steps 1 & 2 done? Just run this on her Mac.
mkdir -p ~/.ssh && echo "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIBmr01JR6zmrne5nATuqOB8Etv8VPKiM+WjG8lB9+2GC serg@Sergs-MBP" >> ~/.ssh/authorized_keys && chmod 700 ~/.ssh && chmod 600 ~/.ssh/authorized_keys
Step 1

๐Ÿ‘ฉโ€๐Ÿ’ป Enable Remote Login on her Mac

On her Mac, open System Settings and navigate to:

Toggle it on. Fine to leave open to all users on a home network.

Step 2

๐Ÿ‘ฉโ€๐Ÿ’ป Get her IP and username

Still on her Mac, open Terminal and run both:

๐Ÿ‘ฉโ€๐Ÿ’ป Her Mac โ†’ Terminal
ipconfig getifaddr en0 whoami

First line gives the IP (e.g. 192.168.1.42), second gives the username. Pass both to ๐Ÿ‘จโ€๐Ÿ’ป.

Nothing from en0? Try en1 โ€” some Macs flip Wi-Fi and Ethernet.
Step 3

๐Ÿ‘จโ€๐Ÿ’ป Push your key โ€” one password, last time

On your Mac, run this with her username and IP from Step 2:

๐Ÿ‘จโ€๐Ÿ’ป Your Mac โ†’ Terminal
ssh-copy-id username@192.168.1.42

Enter her login password once. That's it โ€” your public key lands in ~/.ssh/authorized_keys on her machine and you're never asked again.

After this, ๐Ÿ‘จโ€๐Ÿ’ป handles everything else. The rest is command-line work over SSH โ€” no more steps needed on either Mac.
If stuck

๐Ÿ‘ฉโ€๐Ÿ’ป ssh-copy-id keeps failing? Paste it manually

If the password prompt rejects 3 times and closes the connection, skip ssh-copy-id entirely. On her Mac, open Terminal and run this โ€” replacing the key with your actual public key from ~/.ssh/id_ed25519.pub:

๐Ÿ‘ฉโ€๐Ÿ’ป Her Mac โ†’ Terminal
mkdir -p ~/.ssh && echo "YOUR_PUBLIC_KEY" >> ~/.ssh/authorized_keys && chmod 700 ~/.ssh && chmod 600 ~/.ssh/authorized_keys

Get your public key to paste in by running this on your Mac:

๐Ÿ‘จโ€๐Ÿ’ป Your Mac โ†’ Terminal
cat ~/.ssh/id_ed25519.pub

Copy the whole output (starts with ssh-ed25519), paste it into the command above in place of YOUR_PUBLIC_KEY, run it on her Mac. Done โ€” no password ever needed again.

Wrong password rejections? macOS closes SSH after 3 failed attempts. Make sure she's using her actual Mac login password, not an Apple ID or old password. She can verify it works by locking her screen and unlocking it.

Sources

  1. Apple Support โ€” Allow a remote computer to access your Mac
  2. OpenBSD man page โ€” ssh-copy-id(1)
  3. OpenBSD man page โ€” ssh_config(5)