[Client] -------------------> [Server]
[Client]
~/.ssh/id_rsa # Private Key
~/.ssh/known_hosts # keys of SSH servers accessed by the user
[Server]
~/.ssh/authorized_keys # Publick Key
# lists of authorized public keys
# copy publick key from id_rsa.pub,id_dsa.pub to authorized_keys
| algorithm | command | key pair | complement |
|---|---|---|---|
| RSA1 (ssh version1) | ssh-keygen -t rsa1 -C "comment" | Private Key : ~/.ssh/identity Publick Key : ~/.ssh/identity.pub | |
| RSA (ssh version2) | ssh-keygen -t rsa -C "comment" | Private Key : ~/.ssh/id_rsa Publick Key : ~/.ssh/id_rsa.pub | recommendation |
| DSA (ssh version2) | ssh-keygen -t dsa -C "comment" | Private Key : ~/.ssh/id_dsa Publick Key : ~/.ssh/id_dsa.pub | AWS does not support |