Last active
August 29, 2015 13:58
-
-
Save nlacourte/9978987 to your computer and use it in GitHub Desktop.
SSH config params with master connection
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash -eu | |
| find /tmp/ -maxdepth 1 -name 'ssh-*.sock' -exec ssh -S '{}' localhost -O exit \; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Host * | |
| ForwardX11 yes | |
| ForwardAgent yes | |
| PreferredAuthentications publickey | |
| ControlMaster auto | |
| ControlPersist yes | |
| ControlPath /tmp/ssh-%r-%h-%p.sock |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment