You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@mina.apache.org by "tomaswolf (via GitHub)" <gi...@apache.org> on 2025/04/12 13:45:18 UTC

[I] ProxyJUmp: no default port supplied if there is no HostConfigEntry for the proxy-jump host [mina-sshd]

tomaswolf opened a new issue, #727:
URL: https://github.com/apache/mina-sshd/issues/727

   _Originally posted by @chylek-qr in [#351](https://github.com/apache/mina-sshd/issues/351#issuecomment-2798753586)_
   
   > It's not resolved in 2.15.0. I redacted the username and domain names, but `.ssh/config` looks like this:
   > 
   > ```
   > Host example.proxy
   >         User username
   >         Hostname 192.168.123.123
   >         ProxyJump username@example.com
   > ```
   > 
   > The proxy jump gets parsed as `ssh://username@example.com`, and then https://github.com/apache/mina-sshd/blob/master/sshd-core/src/main/java/org/apache/sshd/client/SshClient.java#L723 gets `-1` as the port, passes it into the jump `HostConfigEntry`, and it fails validation.
   > 
   > ```
   > java.lang.IllegalArgumentException: Invalid port: -1
   > 	at org.apache.sshd.common.util.ValidateUtils.createFormattedException(ValidateUtils.java:234)
   > 	at org.apache.sshd.common.util.ValidateUtils.throwIllegalArgumentException(ValidateUtils.java:200)
   > 	at org.apache.sshd.common.util.ValidateUtils.checkTrue(ValidateUtils.java:183)
   > 	at org.apache.sshd.client.SshClient.doConnect(SshClient.java:562)
   > 	at org.apache.sshd.client.SshClient.doConnect(SshClient.java:574)
   > 	at org.apache.sshd.client.SshClient.connect(SshClient.java:552)
   > 	at org.apache.sshd.client.session.ClientSessionCreator.connect(ClientSessionCreator.java:199)
   > 	at org.apache.sshd.client.session.ClientSessionCreator.connect(ClientSessionCreator.java:188)
   > ``` 
   


-- 
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-unsubscribe@mina.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@mina.apache.org
For additional commands, e-mail: dev-help@mina.apache.org


Re: [I] ProxyJump: no default port supplied if there is no HostConfigEntry for the jump host [mina-sshd]

Posted by "tomaswolf (via GitHub)" <gi...@apache.org>.
tomaswolf closed issue #727: ProxyJump: no default port supplied if there is no HostConfigEntry for the jump host
URL: https://github.com/apache/mina-sshd/issues/727


-- 
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-unsubscribe@mina.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@mina.apache.org
For additional commands, e-mail: dev-help@mina.apache.org


Re: [I] ProxyJump: no default port supplied if there is no HostConfigEntry for the jump host [mina-sshd]

Posted by "chylek-qr (via GitHub)" <gi...@apache.org>.
chylek-qr commented on issue #727:
URL: https://github.com/apache/mina-sshd/issues/727#issuecomment-2799907001

   Thanks!


-- 
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-unsubscribe@mina.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@mina.apache.org
For additional commands, e-mail: dev-help@mina.apache.org