[Bug 3833] New: Setting User with a wildcard Host doesn't work correctly with ProxyJump
bugzilla-daemon at mindrot.org
bugzilla-daemon at mindrot.org
Tue Jun 3 03:33:44 AEST 2025
https://bugzilla.mindrot.org/show_bug.cgi?id=3833
Bug ID: 3833
Summary: Setting User with a wildcard Host doesn't work
correctly with ProxyJump
Product: Portable OpenSSH
Version: -current
Hardware: All
OS: Mac OS X
Status: NEW
Severity: normal
Priority: P5
Component: ssh
Assignee: unassigned-bugs at mindrot.org
Reporter: marc.a.sarrel at jpl.nasa.gov
I need to log in to HostB with account UserB. The routing is set up so
that I must hop through Host A with account UserA. I'm using forwarding
SSH keys with the ssh-agent on my Mac.
I have a config file like this on my local Mac:
Host *
User UserA
Host HostA
...
Host HostB
User UserB
ProxyJump HostA
And this config file on HostA:
Host *
User UserA
Host HostB
User UserB
This fails when I type "ssh HostB" on my Mac. It prompts me for the
password for UserA on HostB. If I type "ssh HostA" on my Mac, then
type "ssh HostB" on HostA, everything works as expected and I log in
without typing any passwords or pass phrases.
If I change the config file on my Mac to this:
Host *
...
Host HostA
User UserA
Host HostB
User UserB
ProxyJump HostA
I can type "ssh HostB" on my Mac and everything works correctly again.
But, this is really inconvenient. It means I have to have a bunch more
User lines in my config file than I should need. I want the first
config file above to work properly with ProxyJump. I should be able to
specify a global default user name this way, and then override it only
as needed, even if I'm using ProxyJump.
--
You are receiving this mail because:
You are watching the assignee of the bug.
More information about the openssh-bugs
mailing list