[Bug 3453] New: User override in Host not respected

bugzilla-daemon at mindrot.org bugzilla-daemon at mindrot.org
Wed Jun 29 13:00:26 AEST 2022


            Bug ID: 3453
           Summary: User override in Host not respected
           Product: Portable OpenSSH
           Version: 8.6p1
          Hardware: amd64
                OS: Mac OS X
            Status: NEW
          Severity: minor
          Priority: P5
         Component: ssh
          Assignee: unassigned-bugs at mindrot.org
          Reporter: mattfleming.au at gmail.com


It seems that the User directive isn't resolved correctly inside a Host
anymore. Example below - note ssh is using matthewfl not matt.fleming
as configured. This was working fine with a previous version. It works
correctly if the top level User is removed.

# ~/.ssh/config

UseRoaming no

Compression yes

User matthewfl

Host aws-bastion
    User matt.fleming

Host dev-*
    User matt.fleming
    ProxyJump matt.fleming at

Host dev-ssw
    User matt.fleming

❰matthew❙~/.ssh❱✔≻ ssh dev-ssw
matthewfl at Permission denied
❰matthew❙~/.ssh❱✘≻ ssh aws-bastion
matthewfl at Permission denied

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

More information about the openssh-bugs mailing list