Linux设置ssh超时时间

#修改默认超时时间为0,0为不限制超时

sed -i  's/TMOUT=300/TMOUT=0/' /etc/profile

#加载环境变量

source /etc/profile 
原文地址:https://www.cnblogs.com/EthanSun/p/13521745.html