Bug#1021122: ssh: Please increase unix_listener socket path limit (path ... too long for Unix domain socket)
Package: openssh-client
Version: 1:8.4p1-5
When using ssh with torsocks to log into a machine with ssh available
via Tor, and ~/.ssh/config set up to use a control socket, I get this
error when I try to log in (note, the onion address has been replaced
with a different one without SSH available, as I do not want to share
the name of my internal servers and picked one of the Debian APT source
addresses as a replacement):
unix_listener: path
"/home/user/.ssh/sock/user@2s4yqjx5ul6okpp3f2gaunr2syex5jgbfpfvhxxbbjwnrsvbk5v3qbid.onion:22.XRUZqmyfV6BqfB0H"
too long for Unix domain socket
My ~/.ssh/config have setup like this:
Host *
ControlPath ~/.ssh/sock/%r@%h:%p
ControlMaster auto
I log in using a commend like this:
torsocks ssh 2s4yqjx5ul6okpp3f2gaunr2syex5jgbfpfvhxxbbjwnrsvbk5v3qbid.onion
According to
<URL: https://stackoverflow.com/questions/35970686/ansible-ssh-error-unix-listener-too-long-for-unix-domain-socket >
there is a 104 or 108 character count limit on the socket path length.
The path aboev is 109 characters.
Can this limit please be raised to a higher number, perhaps 256, to
ensure such union address can be used as hostnames?
A workaround is to use '-S none' to disable the control socket, but it
is quite a a blunt hammer, and I thought it might be worth a try to ask
if you could raise the size limit instead.
--
Happy hacking
Petter Reinholdtsen
Reply to: