-
Notifications
You must be signed in to change notification settings - Fork 18k
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
x/crypto/ssh: when ssh to network switch can not open secondary session #22465
Comments
I have this problem using version 1.8.1 |
can you provide a trace by setting debugMux == true and running your repro? What happens if you use openssh to open a second session? It's possible that the remote implementation simply doesnt support it. |
Hi, I set debugMux = true which defined in x/crypto/ssh/mux.go. And some additional log appeared. The following log was collected from the console and wish it's helpful. Any other requirement just leave message to me. Logs when connect to Huawei CE6851-48S6Q-HI:
Logs when connect to H3C S5500:
Logs when connect to Cisco 2960:
But when connect to Cisco 9364 the second session is ok:
|
yeah, looks like the remote end doesn't support this. If this is bothering you, you should complain to H3C/Cisco/etc. |
I prepare change my solution. I will make a session pool and once a session opened I will hold and reuse it for many times, until it's idle time exceed 10 minutes. I hope this solution can work stable. |
Please answer these questions before submitting your issue. Thanks!
What version of Go are you using (
go version
)?1.9.1
Does this issue reproduce with the latest release?
Yes
What operating system and processor architecture are you using (
go env
)?windows / amd64
What did you do?
Connect via ssh to Cisco/Huawei/H3C switch.
Sample code as follows:
What did you expect to see?
No error
What did you see instead?
When ssh to network switch device.
The connection can be dialed successfully and the first session can be opened normally too.
But from the secondary session it failed.
(Please see the code comment to get detail error)
If ssh to a ubuntu linux server every session can be opened normally.
The text was updated successfully, but these errors were encountered: