Created attachment 2418 [details] Enhancement patch When combining %h, %r, and %p (recommended for uniqueness) in ControlPath, long remote usernames and/or hostnames can cause the expansion to bump up against UNIX_PATH_MAX. This patch adds a uuid-style path component (%m) that expands to the sha1 digest of the concatenation of the local host (%l) + remote host (%h) + remote port (%p) + remote user (%r). The token's expanded length is a fixed 40 characters and provides a reasonable expectation of uniqueness. Sample usage: ControlPath ~/.ssh/control-master/%m
Created attachment 2451 [details] tweaked patch We have a tohex() function that will format a binary blob as a hex string, so we can use that here.
patch applied - will be in OpenSSH 6.7
Nice improvements to the patch - thanks (didn't know about tohex). Cheers.
Close all bugs left open from 6.6 and 6.7 releases.