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

wrong message when connection refused #216

Closed
calphool opened this issue May 17, 2016 · 2 comments
Closed

wrong message when connection refused #216

calphool opened this issue May 17, 2016 · 2 comments
Assignees
Milestone

Comments

@calphool
Copy link

When there's no host listening, you get this for your error message:

ssh: connect to host {whatever} port 22: The operation completed successfully.

Should be:

ssh: connect to host {whatever} port 22: Connection refused

@manojampalam manojampalam added this to the Initial integration to OpenSSH main repo milestone May 23, 2016
@welnanick
Copy link

Just as some more reference, in the latest release, it now says:

ssh: connect to host *host* port 22: No error

Just thought I'd chime in since the message changed.

@arif-pragmasys
Copy link
Contributor

arif-pragmasys commented Dec 20, 2016

When no host listening, the current version prints:
ssh: connect to host xxxxx port 22: Unknown error

It has the correct error no (107, which is ECONNREFUSED), but unable to get a valid string message for that posix error using strerror(), hence the 'Unknon error' message. Looks like the strerror() api is handling Posix errors upto number 43 correctly, beyond that printing 'Unkown error'
capture

@manojampalam manojampalam modified the milestones: January-Mid, Integration to OpenSSH Portable Jan 11, 2017
manojampalam added a commit to PowerShell/openssh-portable that referenced this issue Jan 14, 2017
@manojampalam manojampalam self-assigned this Jan 14, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants