阿里云服务器ubuntu ssh断线及配置免密码登陆
创建文件,写入内容
vi ~/.ssh/config
#Added lines to fix.
Host *
IPQoS lowdelay throughput
赋权
chmod 644 ~/.ssh/config
最好在sshd文件中加入
ClientAliveInterval 30
ClientAliveCountMax 86400
免密登录权限给予
chmod 755 ~/.ssh/
chmod 600 ~/.ssh/id_rsa ~/.ssh/id_rsa.pub
chmod 644 ~/.ssh/known_hosts