Bug 2943

Summary: ControlPath: automatically create parent directories if needed
Product: Portable OpenSSH Reporter: Julien Nicoulaud <julien.nicoulaud>
Component: sshAssignee: Assigned to nobody <unassigned-bugs>
Status: NEW ---    
Severity: enhancement CC: julien.nicoulaud, riehecky
Priority: P5    
Version: 7.9p1   
Hardware: All   
OS: Linux   

Description Julien Nicoulaud 2018-12-09 05:24:18 AEDT
When using a ControlPath with nested subdirectories, for instance (trying to follow XDG spec):

  ControlPath ~/.cache/ssh/%r@%h:%p

If these directories do not exist, ssh 7.9p1 fails with message:

  unix_listener: cannot bind to path /home/XXXX/.cache/ssh/XXXX@XXXX: No such file or directory

It would be nice if the needed parent directories were automatically created.