equal
deleted
inserted
replaced
20 $ ssh-keygen -t rsa # for RSA |
20 $ ssh-keygen -t rsa # for RSA |
21 $ ssh-keygen -t dsa -C comment # put own comment instead user@host |
21 $ ssh-keygen -t dsa -C comment # put own comment instead user@host |
22 $ ssh-keygen -t dsa -f my_dsa_key # store priv key under my_dsa_key |
22 $ ssh-keygen -t dsa -f my_dsa_key # store priv key under my_dsa_key |
23 # and pub key under my_dsa_key.pub |
23 # and pub key under my_dsa_key.pub |
24 |
24 |
25 $ ssh-keygen -y -f my_dsa_key # recover pub key from priv |
25 $ ssh-keygen -y -f ~/.ssh/id_dsa >~/.ssh/id_dsa.pub # recover pub key from priv |
26 |
26 |
27 $ ssh-keygen -p -N "newphrase" -P "oldphrase" -f ~/.ssh/id_dsa |
27 $ ssh-keygen -p -N "newphrase" -P "oldphrase" -f ~/.ssh/id_dsa |
28 # change passphrase of priv key |
28 # change passphrase of priv key |
29 |
29 |
30 $ ssh $user@$host cat ">>" "~/.ssh/authorized_keys" <~/.ssh/id_rsa.pub |
30 $ ssh $user@$host cat ">>" "~/.ssh/authorized_keys" <~/.ssh/id_rsa.pub |