Linux设置ssh超时时间 #修改默认超时时间为0,0为不限制超时 sed -i 's/TMOUT=300/TMOUT=0/' /etc/profile #加载环境变量 source /etc/profile