-
-
Notifications
You must be signed in to change notification settings - Fork 119
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
client::Handle::channel_open_direct_tcpip blocks and does not return until connection fails. #329
Comments
Can you actually connect to |
Thank you for getting back to me. Yes I am able to connect to the ssh server. I tested it using the |
But are you then able to connect to |
Ok. I understand what you are saying. How do you suggest I connect to it from the ssh server? Would a ping be sufficient or should I open a tcp stream and try writing to it? |
Yes, you can just use netcat: |
Thank you! I will try this. I appreciate your help. |
I am trying to set up simple port forwarding through a jump host. I am doing this by using
client::connect
to get aclient::Handle
then (after authenticating) using the handle to open a Tcp/Ip forwarding channel throughclient::Handle::channel_open_direct_tcpip
.I have noticed that the
Handler::openssh_ext_host_keys_announced
is the lastHandler
method to execute. This suggests that the server is responding to the forwarding request and willing to allow it. I am suspicious that I am not implementing this method properly and the server is waiting for me to confirm the public keys and it eventually stops waiting and closes the connection. Is this correct? If so how do you confirm the public keys?To investigate I have confirmed that the server is responding to ssh and port forwarding by using the GNU
ssh
command that is native to linux. I have also opened connections without port forwarding (viarussh
) and they seem to return just fine. Does any one have any suggestions on avenues I could explore that may shed light on the issue? I appreciate the help. Thank you! (Console output below)The text was updated successfully, but these errors were encountered: