A New SSH Key
To create and authorize a new SSH:
- Run
ssh-keygen -t ed25519on the client machine. - Enter an absolute path to your
.sshfolder and the name of the id (id_*). - Enter a new passphrase twice.
- Upload the
*.pubfile to whatever service the SSH key is for, or add it to~/.ssh/authorized_keyson the host machine. - Add the following to the client machine's
~/.ssh/configfile (for macOS at least). Be sure to fill in the<fill-me>partsHost <choose-a-name>
HostName <ip-or-domain-here>
User <username>
AddKeysToAgent yes
UseKeychain yes
IdentitiesOnly yes
IdentityFile ~/.ssh/<your-non-pub-id-file-name> - Connect with
ssh choose-a-name(use the name you entered next toHostin the config file).