ssh问题

一、基于秘钥认证:

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

原文地址:https://www.cnblogs.com/fanxuanhui-linux/p/6036257.html