Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
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'

Copy link

kirooshu commented Oct 4, 2018

Amazing, thank you for pointing this solution out!

Copy link

tedpearson commented Dec 11, 2018

This just helped me, thanks!

Copy link

kongpingfan commented Jan 8, 2019

Thanks a lot! SOLVED MY PROBLEM~

Copy link

wolandtel commented Jan 9, 2019

Thank you.

Copy link

ramankhurana commented Jan 22, 2019

worked in first attempt. Thanks for providing this solution.

Copy link

margaret77 commented Apr 24, 2019

really help! Thanks a lot :)

Copy link

boopathid commented Aug 8, 2019

Great, helped me solve the mystery.

Copy link

ZiyunYang commented May 4, 2020

Works for me!!!! Thanks!

Copy link

Arullaldivakar commented Sep 10, 2020


Copy link

vikasvysetti commented Feb 17, 2021

Thanks! this helped.

Copy link

bdmorin commented Mar 3, 2021

perfect fix, thnx

Copy link

paoloromolini commented Jul 6, 2021


Copy link

Chenxi74 commented Jun 24, 2022

Thanks a lot!

Copy link

cruepprich commented Jun 28, 2022

Thank you!

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