#修改默认超时时间为0,0为不限制超时
sed -i ‘s/TMOUT=300/TMOUT=0/‘ /etc/profile
#加载环境变量
source /etc/profile
Linux设置ssh超时时间
原文:https://www.cnblogs.com/EthanSun/p/13521745.html