Skip to content

Instantly share code, notes, and snippets.

@zh4n7wm
Forked from andyvanee/.ssh_config
Created March 26, 2019 09:02
Show Gist options
  • Save zh4n7wm/655c60551893e5cc0ffc197ed7bafae8 to your computer and use it in GitHub Desktop.
Save zh4n7wm/655c60551893e5cc0ffc197ed7bafae8 to your computer and use it in GitHub Desktop.
Fix unix_listener too long for Unix domain socket
Host *
ControlPath ~/.ssh/control/%C
ControlMaster auto
  • Problem: unix listener too long for Unix domain socket

  • Solution: mkdir ~/.ssh/control and modify ~/.ssh/config use the %C format instead of %r@%h:%p

  • More Detail: man ssh_config defines the %C format as 'a hash of the concatenation: %l%h%p%r'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment