??????? ??????
????????????????????????????????????
??????????????統(tǒng)?????????rxbyes??????????22???????????
??????????ssh user@hostname -p port eg: ssh rxbyes@192.168.1.1 -p 22
???????? ????????
??????????????????????? rsa ?????
??????????ssh-keygen -t rsa  ?????????????????????
???????????????????? id_rsa.pub ???????? rxbyes ???????? ~/.ssh/ ????
??????????scp ./id_rsa.pub rxbyes@192.168.1.1:~/.ssh/
????????????????????????? id_rsa.pub ???????? authorized_key ????????????????????
??????????cat id_rsa.pub >> authorized_key
?????????????????? authorized_key ???
??????????chmod 700 ~/.ssh/
??????????chmod 600 authorized_key
???????崠????Щ??????????????????? /etc/ssh/sshd_config ???? PubkeyAuthentication ???ó? yes
??????????/etc/init.d/ssh restart
??????????????????
??????????????????? ~/.ssh/config ??????????????
????Host rxbyes
????HostName 192.168.1.1
????Port 22
????User rxbyes
????IdentityFile ~/.ssh/id_rsa? (id_rsa????????)
????????????????????????
????ssh rxbyes