Skip to content
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

sometimes Net::SSH will throw IOError when the server has closed the connection #75

Closed
juliandunn opened this issue Jan 25, 2013 · 1 comment

Comments

@juliandunn
Copy link

This came up during some testing in the Veewee project: jedi4ever/veewee#499

Sometimes when the server terminates the SSH connection, an IOError is thrown rather than what I'd expect, which is Net::SSH::Disconnect. See this Gist for an illustration of the behavior.

https://gist.github.com/4596902

@delano
Copy link
Collaborator

delano commented Jan 27, 2013

Thanks for the report. Does sshd send a disconnect to connected clients when it shuts down though? As far as I know it doesn't. There's no way for Net-SSH to tell the difference between a network-related IOError and one resulting from sshd shutting down.

@mfazekas mfazekas closed this as completed Mar 5, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants