codex
Search
⌃K

SSH

firewall rules and restrictions

ssh keygen

ssh-keygen -t [rsa/ecdsa/ed25519]
^If using ecdsa set -b (bytes) to 521. For RSA keys set -b to 4096.

adding keys to macos keychain

This needs to be repeated after some upgrades
ssh-add --apple-use-keychain ~/.ssh/[keyfile]

Copying keys to a remote host

ssh-copy-id [email protected]
To copy a specific file:
ssh-copy-id -i ~/.ssh/[keyfile] [email protected]
Last modified 1yr ago