ssh.rst
changeset 867 0ad8febf7458
parent 376 9d0020009266
--- a/ssh.rst	Mon Apr 04 17:35:05 2011 +0300
+++ b/ssh.rst	Mon Apr 04 17:35:24 2011 +0300
@@ -13,7 +13,7 @@
   $ ssh-keygen -p -N "newphrase" -P "oldphrase" -f ~/.ssh/id_dsa
                                      # change passphrase of priv key
 
-  $ ssh user@remote_host cat < $HOME/.ssh/id_rsa.pub cat ">>" .ssh/authorized_keys
+  $ ssh user@remote_host cat ">>" "~/.ssh/authorized_keys" <~/.ssh/id_rsa.pub
                                      # public pub key on remote host
 
 * Using.