页面

2013年5月20日星期一

SSH speedup

作为每天 ssh 到服务器的码农,以下 ssh 设置真是实用啊。


# http://blogs.perl.org/users/smylers/2011/08/ssh-productivity-tips.html

# If the network disappears your connection will hang, but if it then re-appears with 3 minutes it will resume working
TCPKeepAlive no
ServerAliveInterval 60
ServerAliveCountMax 3

# avoid not used GSSAPI authentication to faster up connection
GSSAPIAuthentication no

# share ssh session
ControlMaster auto
ControlPath /tmp/ssh_mux_%h_%p_%r

# keep alive for 2h
ControlPersist 2h

# scp on remote
ForwardAgent yes

详见:
http://blogs.perl.org/users/smylers/2011/08/ssh-productivity-tips.html

上个文章 comments 里的一个连接:
http://diogomelo.net/blog/10/ssh-tricks

[Quick-Tip: Reusing OpenSSH connections to the same host](https://revsys.com/writings/quicktips/ssh-faster-connections.html)

没有评论:

发表评论