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 usern...@example.com > ``` > > The proxy jump gets parsed as `ssh://usern...@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-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