Jengyic's 正義部落
從頭開始紀錄我的學習生活。
Monday, December 31, 2018
加速 SSH 重複登入
這裡採用的是 ControlMaster 功能, 可設定持續時間.
$ mkdir -p ~/.ssh/cm_socket
$ vi ~/.ssh/config
Host *
ControlMaster auto
ControlPath ~/.ssh/cm_socket/%r@%h:%p
ControlPersist 5m
$ chmod 0600 ~/.ssh/config
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment