Skip to content

Instantly share code, notes, and snippets.

@chzealot
Created August 18, 2012 18:36
Show Gist options
  • Save chzealot/3388926 to your computer and use it in GitHub Desktop.
Save chzealot/3388926 to your computer and use it in GitHub Desktop.
ssh配置,普通用户权限就可以;开启ForwardAgent,方便中转;每隔30s发送NOOP指令,连续6次失败则中止,保持连接,避免掉线;
$ cat ~/.ssh/config
Host *
ServerAliveInterval 30
ServerAliveCountMax 6
ForwardAgent yes
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment