moul/assh

ControlPath directories not being created

kryptek opened this issue · 2 comments

When SSH'ing to new addresses, the ControlPath is not being created:

$ ssh 10.0.105.49/region
unix_listener: cannot bind to path /tmp/bastion-10.0.105.49/region22user.25gMzAj6vme04YH8: No such file or directory

If I create the directory first and attempt again, it succeeds.

$ mkdir /tmp/bastion-10.0.105.49 && ssh 10.0.105.49/region

Have the same issue, please fix this.

one workaround is us %C for %h

%C    Hash of %l%h%p%r.
  controlpath: ~/.temp/ssh/%r@%c-%p.sock