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: [email protected]
Reporter: [email protected]
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@server1:~$ cat .ssh/config
Host localhost
user=user_config
gbajson@server1:~$ ssh -o user=user-o localhost
user-o@localhost's password:
2. "-l" and "@" override "-o user"
----------------------------------
gbajson@server1:~$ ssh -l user_minus_l localhost
user_minus_l@localhost's password:
gbajson@server1:~$ ssh user_at@localhost
user_at@localhost's password:
3. The last username is chosen when, both "-l" and "@" are provided
-------------------------------------------------------------------
gbajson@server1:~$ ssh user_at@localhost -l user_minus_l
user_minus_l@localhost's password:
gbajson@server1:~$ ssh -l user_minus_l user_at@localhost
user_at@localhost's password:
Kind regards,
Grzegorz
--
You are receiving this mail because:
You are watching the assignee of the bug.
_______________________________________________
openssh-bugs mailing list
[email protected]
https://lists.mindrot.org/mailman/listinfo/openssh-bugs