bugzilla-daemon at bugzilla.mindrot.org
2016-Feb-18 08:19 UTC
[Bug 2542] New: Conflicting usernames by -l, -o user, user@ - it's not clear which one is used
https://bugzilla.mindrot.org/show_bug.cgi?id=2542
Bug ID: 2542
Summary: Conflicting usernames by -l, -o user, user@ - it's not
clear which one is used
Product: Portable OpenSSH
Version: 6.7p1
Hardware: Other
OS: Linux
Status: NEW
Severity: enhancement
Priority: P5
Component: ssh
Assignee: unassigned-bugs at mindrot.org
Reporter: gbajson at gmail.com
Hi,
I couldn't find any description of the rule for choosing a right
username when many usernames are provided from the command line/config
file:
It seems that usernames provided with -l and ...@ override the ones
from config and "-o user", and the last one is chosen.
I am not sure if this is a documentation issue or a bug.
Examples:
---------
1. "-o" overrides .ssh/config
-----------------------------
gbajson at server1:~$ cat .ssh/config
Host localhost
user=user_config
gbajson at server1:~$ ssh -o user=user-o localhost
user-o at localhost's password:
2. "-l" and "@" override "-o user"
----------------------------------
gbajson at server1:~$ ssh -l user_minus_l localhost
user_minus_l at localhost's password:
gbajson at server1:~$ ssh user_at at localhost
user_at at localhost's password:
3. The last username is chosen when, both "-l" and "@" are
provided
-------------------------------------------------------------------
gbajson at server1:~$ ssh user_at at localhost -l user_minus_l
user_minus_l at localhost's password:
gbajson at server1:~$ ssh -l user_minus_l user_at at localhost
user_at at localhost's password:
Kind regards,
Grzegorz
--
You are receiving this mail because:
You are watching the assignee of the bug.
bugzilla-daemon at bugzilla.mindrot.org
2016-Feb-18 10:02 UTC
[Bug 2542] Conflicting usernames by -l, -o user, user@ - it's not clear which one is used
https://bugzilla.mindrot.org/show_bug.cgi?id=2542
Darren Tucker <dtucker at zip.com.au> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |dtucker at zip.com.au
--- Comment #1 from Darren Tucker <dtucker at zip.com.au> ---
ssh_config(5) has this at the top:
ssh(1) obtains configuration data from the following sources in the
fol-
lowing order:
1. command-line options
2. user's configuration file (~/.ssh/config)
3. system-wide configuration file (/usr/local/etc/ssh_config)
does that help?
--
You are receiving this mail because:
You are watching the assignee of the bug.
You are watching someone on the CC list of the bug.
bugzilla-daemon at bugzilla.mindrot.org
2016-Feb-18 10:15 UTC
[Bug 2542] Conflicting usernames by -l, -o user, user@ - it's not clear which one is used
https://bugzilla.mindrot.org/show_bug.cgi?id=2542
Jakub Jelen <jjelen at redhat.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |jjelen at redhat.com
--- Comment #2 from Jakub Jelen <jjelen at redhat.com> ---
This bug is already filled as bug #2385, but I consider both of them
resolved by the commit mentioned in the other one:
http://cvsweb.openbsd.org/cgi-bin/cvsweb/src/usr.bin/ssh/sshconnect.c.diff?r1=1.260&r2=1.261
--
You are receiving this mail because:
You are watching the assignee of the bug.
You are watching someone on the CC list of the bug.
bugzilla-daemon at bugzilla.mindrot.org
2016-Feb-18 10:43 UTC
[Bug 2542] Conflicting usernames by -l, -o user, user@ - it's not clear which one is used
https://bugzilla.mindrot.org/show_bug.cgi?id=2542 --- Comment #3 from Grzegorz Bajson <gbajson at gmail.com> --- Darren, this helps but doesn't explain cases (2) and (3). Jakub, in fact this one is a duplicate. Thank you both. -- You are receiving this mail because: You are watching the assignee of the bug. You are watching someone on the CC list of the bug.
bugzilla-daemon at bugzilla.mindrot.org
2018-Jul-12 05:49 UTC
[Bug 2542] Conflicting usernames by -l, -o user, user@ - it's not clear which one is used
https://bugzilla.mindrot.org/show_bug.cgi?id=2542
Damien Miller <djm at mindrot.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
CC| |djm at mindrot.org
Resolution|--- |DUPLICATE
--- Comment #4 from Damien Miller <djm at mindrot.org> ---
*** This bug has been marked as a duplicate of bug 2835 ***
--
You are receiving this mail because:
You are watching the assignee of the bug.
You are watching someone on the CC list of the bug.
bugzilla-daemon at mindrot.org
2021-Apr-23 05:10 UTC
[Bug 2542] Conflicting usernames by -l, -o user, user@ - it's not clear which one is used
https://bugzilla.mindrot.org/show_bug.cgi?id=2542
Damien Miller <djm at mindrot.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|RESOLVED |CLOSED
--- Comment #5 from Damien Miller <djm at mindrot.org> ---
closing resolved bugs as of 8.6p1 release
--
You are receiving this mail because:
You are watching the assignee of the bug.
You are watching someone on the CC list of the bug.