![ssh问题 ssh问题](https://image.shishitao.com:8440/aHR0cHM6Ly9ia3FzaW1nLmlrYWZhbi5jb20vdXBsb2FkL2NoYXRncHQtcy5wbmc%2FIQ%3D%3D.png?!?w=700&webp=1)
一、基于秘钥认证:
ssh-keygen
ssh-copy-id -i .ssh/id_rsa.pub 10.10.10.70
#在对方authorized_keys 文件中写入自己的id_rsa.pub文件中的内容
#cat id_rsa.pub > authorized_keys #本机对本机
二、加快ssh登录速度:
vim /etc/ssh/sshd_config #对端设置(需要登录到对端的服务器)
UseDNS no
GSSAPIAuthentication no
GSSAPICleanupCredentials no