[Bug 2936] New: ssh tries to use empty $SSH_AUTH_SOCK

bugzilla-daemon at bugzilla.mindrot.org bugzilla-daemon at bugzilla.mindrot.org
Thu Nov 29 23:50:37 AEDT 2018


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

            Bug ID: 2936
           Summary: ssh tries to use empty $SSH_AUTH_SOCK
           Product: Portable OpenSSH
           Version: 7.9p1
          Hardware: Other
                OS: Linux
            Status: NEW
          Severity: enhancement
          Priority: P5
         Component: ssh
          Assignee: unassigned-bugs at mindrot.org
          Reporter: ossman at cendio.se

If you do this:

> $ SSH_AUTH_SOCK= ssh foo at bar

Then ssh will try to connect to an agent at address "\0\0\0\0....",
which is a perfectly legal abstract socket address on Linux.

This was discovered by the fact that irqbalance 1.5.0 happens to listen
to that address:

https://github.com/Irqbalance/irqbalance/issues/85

The end result is that ssh hangs as it tries to talk to irqbalance,
believing it is an SSH agent.


This is a very confusing behaviour and I would have expected an empty
$SSH_AUTH_SOCK to be treated the same as if it was not set at all.

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


More information about the openssh-bugs mailing list