Generate keys
ssh-keygen -t rsaSpecify 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 -vInput key file
-i <input file>Updated:
2026 Aug 19

