\ Computer \ OS \ *Nix \ SSH \

Keys

Generate keys

ssh-keygen -t rsa

Specify the path when prompted. It does not take it by default.

Remove a host key

ssh-keygen -R <host>

Removes the key from known_hosts.

Add a key file

ssh-add <file.pem>

Adds the key file to the global store, for direct login without having to specify the key file.

Verbose

ssh -v

Input key file

-i <input file>
Updated: 2026 Aug 19