修改以下4行,重启sshd即可:
HostKey /etc/ssh/ssh_host_rsa_key HostKey /etc/ssh/ssh_host_dsa_key RSAAuthentication yes PubkeyAuthentication yes
特别注意前两行容易忘记
某些情况下会报错:
Agent admitted failure to sign using the key.
在服务端相应的用户登录后执行以下命令即可:
ssh-add ~/.ssh/id_rsa
修改以下4行,重启sshd即可:
HostKey /etc/ssh/ssh_host_rsa_key HostKey /etc/ssh/ssh_host_dsa_key RSAAuthentication yes PubkeyAuthentication yes
特别注意前两行容易忘记
某些情况下会报错:
Agent admitted failure to sign using the key.
在服务端相应的用户登录后执行以下命令即可:
ssh-add ~/.ssh/id_rsa