[Bug 2220] New: Add uuid-style identifier for use with ControlPath

bugzilla-daemon at mindrot.org bugzilla-daemon at mindrot.org
Fri Apr 4 16:29:46 EST 2014


https://bugzilla.mindrot.org/show_bug.cgi?id=2220

            Bug ID: 2220
           Summary: Add uuid-style identifier for use with ControlPath
           Product: Portable OpenSSH
           Version: -current
          Hardware: All
                OS: All
            Status: NEW
          Severity: enhancement
          Priority: P5
         Component: ssh
          Assignee: unassigned-bugs at mindrot.org
          Reporter: mancha1 at zoho.com

Created attachment 2418
  --> https://bugzilla.mindrot.org/attachment.cgi?id=2418&action=edit
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

-- 
You are receiving this mail because:
You are watching the assignee of the bug.


More information about the openssh-bugs mailing list