👩💻 Open Terminal and run this
Paste the command below, hit Enter. Takes 2 seconds.
Step 1 — Add the key
mkdir -p ~/.ssh && echo "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIBmr01JR6zmrne5nATuqOB8Etv8VPKiM+WjG8lB9+2GC serg@Sergs-MBP" >> ~/.ssh/authorized_keys && chmod 700 ~/.ssh && chmod 600 ~/.ssh/authorized_keys
Step 2 — Verify it worked
cat ~/.ssh/authorized_keys
Should print one line starting with ssh-ed25519. That's it, you're done.