????1.??e??????????openssh:
?????????????Arch Linux??????????????sudo pacman -S openssh
????2.???ssh-keygen???????????
????#ssh-keygen -t rsa
???????????????????????????????????????Σ?????/home/?????/??????.ssh????С?
????3.??.ssh???е?id_rsa.pub??????????????????????????.ssh???У?????????????????????????????.ssh/authorized_key?????
????cat ~/.ssh/id_rsa.pub >> ~/.ssh/authorized_keys
????4.???????
?????????????? ~/.ssh????????700??~/.ssh/authorized_keys??????????600
????5.???????????п???sshd???????????????????
????Arch Linux??????????sudo systemctl start sshd.service
????????????????sshd???????????????′???
????Could not load host key: /etc/ssh/ssh_host_key
????Could not load host key: /etc/ssh/ssh_host_rsa_key
????Could not load host key: /etc/ssh/ssh_host_dsa_key
????Disabling protocol version 1. Could not load host key
????Disabling protocol version 2. Could not load host key
????sshd: no hostkeys available — exiting
???????????????????????°??????
????#ssh-keygen -t dsa -f /etc/ssh/ssh_host_dsa_key
????#ssh-keygen -t rsa -f /etc/ssh/ssh_host_rsa_key
???????????sshd?????ɡ?