frothga commented on issue #281:
URL: https://github.com/apache/mina-sshd/issues/281#issuecomment-1488954013

   Another related issue -- I believe that command line ssh will use the given 
username (and other attributes) as defaults for the configuration of jump 
hosts. IE: if I have an ssh config file that does not mention username at all, 
ssh will still use the username from the command line (or the environment) to 
log in to each of the jump hosts. The current behavior in MINA's 
normalizeEntry() would be correct for this case (but incorrect for the primary 
target host).
   
   The problem is that the SshClient connect() and doConnect() functions do not 
pass username or other attributes on to parseProxyJumps(). Everything has to 
come from the proxy URL itself. Again, this forces the ssh config file to 
contain more info than is required by ssh command line.
   
   Not sure if it is your goal that MINA to work correctly with any config file 
that works correctly with ssh command line. As a naive user, that's what I'd 
expect. It would help to either fix these issues or create some documentation 
saying how MINA interprets config files differently.


-- 
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

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

Reply via email to