[Bug 2542] New: Conflicting usernames by -l, -o user, user@ - it's not clear which one is used
bugzilla-daemon at bugzilla.mindrot.org
bugzilla-daemon at bugzilla.mindrot.org
Thu Feb 18 19:19:35 AEDT 2016
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.
More information about the openssh-bugs
mailing list