chylek-qr commented on issue #351:
URL: 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 [email protected]
   ```
   
   The proxy jump gets parsed as `ssh://[email protected]`, 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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to