equal
deleted
inserted
replaced
25 $ ssh-keygen -t rsa # for RSA |
25 $ ssh-keygen -t rsa # for RSA |
26 $ ssh-keygen -t dsa -C comment # put own comment instead user@host |
26 $ ssh-keygen -t dsa -C comment # put own comment instead user@host |
27 $ ssh-keygen -t dsa -f my_dsa_key # store priv key under my_dsa_key |
27 $ ssh-keygen -t dsa -f my_dsa_key # store priv key under my_dsa_key |
28 # and pub key under my_dsa_key.pub |
28 # and pub key under my_dsa_key.pub |
29 |
29 |
30 $ ssh-keygen -y -f ~/.ssh/id_dsa >~/.ssh/id_dsa.pub # recover pub key from priv |
30 Recover pub key from priv:: |
|
31 |
|
32 $ ssh-keygen -y -f ~/.ssh/id_dsa >~/.ssh/id_dsa.pub |
|
33 |
|
34 Change passphrase of priv key:: |
31 |
35 |
32 $ ssh-keygen -p -N "newphrase" -P "oldphrase" -f ~/.ssh/id_dsa |
36 $ ssh-keygen -p -N "newphrase" -P "oldphrase" -f ~/.ssh/id_dsa |
33 # change passphrase of priv key |
|
34 |
37 |
35 Coping and deleting public keys |
38 Coping and deleting public keys |
36 =============================== |
39 =============================== |
37 |
40 |
38 To copy your public key to remote host (for automatic login by pubkey |
41 To copy your public key to remote host (for automatic login by pubkey |