Avoid ssh session time out

你说的曾经没有我的故事 提交于 2019-12-06 09:41:06
Ursula

This has been answered on StackOverFlow - I add the link here for people that don't want to go to a third party forum when they search for this answer (as I did):

https://stackoverflow.com/questions/13390710/mac-terminals-how-to-keep-alive

Add to ~/.ssh/config

ServerAliveInterval 30

or start your ssh session using:

ssh -o ServerAliveInterval 30 username@hostname

And BTW: the answer is not specific to Mac.

harrier

You might consider using vi or more to edit a file.

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!