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
Error reading from socket #1946
Comments
So I guess you're using a Juniper router? Anyway, normally when an SSH server is done sending the output of a command it sends NET_SSH2_MSG_CHANNEL_EOF
In lieu of knowing the output of that I wonder if doing the above with a PTY ( |
Hi, Super frustrating, but this 'automatically' solved itself. Not sure if the length of the output (as ARP table changes) has any effect. I'll go ahead and try your code and post output if the problem arise. "A bug that disappears on its own will come back on its own" - so I'll be back eventually.. |
Hi, So this keep happening very randomly, and to more than Cisco-routers. Do you want me to add any snippet anywhere to capture more data? Thanks, |
Did you try adding the code I mentioned in #1946 (comment) ? Re-reviewing the logs you sent me, the server identifies itself as using OpenSSH. Can you edit the sshd_config file? If so could you add the following to it?:
Then, when you get the error, if you could get the logs for that session and send them to me that could yield some useful insights. |
This started happening now pretty frequently so managed to capture logs. Here is the output of the code echo: This is not with adjusted loglevel on the server (which I cannot change at the moment). Thank you! |
I'm going to need access to the server to figure this out. Right now I'm on a plane flying to Europe from Texas for the start of a two week long vacation. To figure this out is going to require a lot of trial and error. Like let's say I gave you some more changes to run in the morning and then after I'm finished seeing the northern lights or whatever, I'd have to get back into this - like I'd have to get into the same headspace that I was when I made code change requests and I don't want that to be a key defining characteristic of this trip. I'd rather just get in, spend a few hours on it one night after I get back from whatever activity I'm doing and figure it out and then be done with it rather then having it hanging over my shoulders for the entire length of my vacay. |
Hi, First off - enjoy your trip. Don't in any way let this ticket get in the way of that. Secondly - granting access will be impossible as it's a bastion server, meaning it has no internet and only talks locally to other servers on the lan. I understand this makes it a ton more difficult to troubleshoot. Enjoy Europe and don't stress over this ticket, please. |
Hi,
PHPSeclib: 3.0.21
Connecting to a remote Cisco using username/password.
Timeout is set very high, so that's not the issue.
Running the command
show mac address-table | no-more
which has a pretty length output.The error comes from
phpseclib3\Net\SSH2->read_remaining_bytes()
Similar issue as #1700
Here is the output @terrafrost wanted then:
I have emailed the full log with NET_SSH2_LOGGING as I cannot share potentially sensitive data.
In the log, I see parts of the contents from the command - so from my understanding it's reading correctly but cannot get the full response.
The text was updated successfully, but these errors were encountered: