ssh.rst
changeset 1626 73fa021859e7
parent 1595 7f512266d262
child 1680 826133768ee5
--- a/ssh.rst	Tue Sep 30 19:30:28 2014 +0300
+++ b/ssh.rst	Thu Oct 02 15:55:43 2014 +0300
@@ -22,7 +22,7 @@
   $ ssh-keygen -t dsa -f my_dsa_key  # store priv key under my_dsa_key
                                      # and pub key under my_dsa_key.pub
 
-  $ ssh-keygen -y -f my_dsa_key      # recover pub key from priv
+  $ ssh-keygen -y -f ~/.ssh/id_dsa >~/.ssh/id_dsa.pub  # recover pub key from priv
 
   $ ssh-keygen -p -N "newphrase" -P "oldphrase" -f ~/.ssh/id_dsa
                                      # change passphrase of priv key