== ssh keygen(cygwin) ==
ssh-keygen -t rsa -P '' -f ~/.ssh/id_rsa && scp ~/.ssh/id_rsa.pub root@example.com:~
cd ~ && cat id_rsa.pub >> .ssh/authorized_keys && chmod 700 .ssh && chmod 600 .ssh/authorized_keys
-- or --
ssh-keygen -t dsa -P '' -f ~/.ssh/id_dsa && scp ~/.ssh/id_dsa.pub root@example.com:~
cd ~ && cat id_dsa.pub >> .ssh/authorized_keys && chmod 700 .ssh && chmod 600 .ssh/authorized_keys
网友评论