ssh 认证linux cygwin

2017-03-30  本文已影响44人  9682f4e55d71
== 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
上一篇下一篇

猜你喜欢

热点阅读