Bug 2943 - ControlPath: automatically create parent directories if needed
Summary: ControlPath: automatically create parent directories if needed
Status: NEW
Alias: None
Product: Portable OpenSSH
Classification: Unclassified
Component: ssh (show other bugs)
Version: 7.9p1
Hardware: All Linux
: P5 enhancement
Assignee: Assigned to nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-12-09 05:24 AEDT by Julien Nicoulaud
Modified: 2022-09-22 01:46 AEST (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.