October 23, 2020 · linux
SSH Key Based Authentication
Step One - Create the RSA Key Pair
- Generate the key
ssh-keygen -t rsa
- Accept the default settings for the key
- File Location
- Passphrase
- Public key saved to: /
- Private key saved to: /
Step Two - Copy the Public Key
- Use the
ssh-copy-id
command to copy the key
ssh-copy-id user@ip
- Note: This requires ssh-copy-id to be installed, if not installed, install via:
brew install ssh-copy-id