frothga opened a new issue, #281: URL: https://github.com/apache/mina-sshd/issues/281
### Version 2.9.2 ### Bug description In ssh/config: Host A ... Host B ... Host * User xxx In Java code: SshClient client = SshClient.setUpDefaultClient (); HostConfigEntry entry = client.getHostConfigEntryResolver ().resolveEffectiveHost ("hhh", 22, null, "xxx", null, null); ClientSession session = client.connect ("yyy", "hhh", 22).verify (timeout).getSession (); // Username "yyy", not "xxx". session.setUserInteraction (I); session.addPasswordIdentity ("ppp"); session.auth ().verify (120000); ### Actual behavior Based on debug log, username "xxx" is passed to host, not username "yyy". After removing the default entry in ssh/config, the correct username is passed. ### Expected behavior When the programmer explicitly specifies a username+host pair in the connect() call, it should take precedence over all other sources of username for the given host. In particular, it should definitely override a default value in config, much the same way specific host entries in config override the default. Perhaps some special value could indicate to use the default, for example passing null for username. ### Relevant log output _No response_ ### Other information _No response_ -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: dev-unsubscr...@mina.apache.org.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@mina.apache.org For additional commands, e-mail: dev-h...@mina.apache.org