Hello I saw this error below. My feeling is that the second line is not needed. Would a patch be accepted to change it? If it's easy enough to do I could probably track down the bit of code generating it. the ssh error is also not quite as good as it could be, My feeling is that it doesn't need to tag "Name or service not known" on to the end of the line when it has already said it Could not resolve the hostname! Please include my email address in any replies as I am not on this mailing list. Regards, Jon j at laptop:~$ sftp oops at unknown-web-qbcdef.com Connecting to unknown-web-qbcdef.com... ssh: Could not resolve hostname unknown-web-qbcdef.com: Name or service not known Couldn't read packet: Connection reset by peer j at laptop:~$ j at laptop:~$ ssh unknown-web-qbcdef.com ssh: Could not resolve hostname unknown-web-qbcdef.com: Name or service not known j at laptop:~$
I'll be happy to donate 40 Euros to the project if both of these messages could be simplified as I suggest. Best regards, Jon
On Sun, Apr 05, 2009 at 06:53:45PM +0100, Jon Grant wrote:> Hello > > I saw this error below. My feeling is that the second line is not > needed. Would a patch be accepted to change it? If it's easy enough to > do I could probably track down the bit of code generating it. > > the ssh error is also not quite as good as it could be, My feeling is > that it doesn't need to tag "Name or service not known" on to the end > of the line when it has already said it Could not resolve the > hostname!That's what strerror(errno) gives, and you only think it's not needed because you probably already knew what the problem was. If the system error was "Network unreachable", but it was never printed, you might be ripping your hair out.
Please file a bug at https://buzgilla.mindrot.org/ so it doesn't get lost. -d On Sun, 5 Apr 2009, Jon Grant wrote:> Hello > > I saw this error below. My feeling is that the second line is not > needed. Would a patch be accepted to change it? If it's easy enough to > do I could probably track down the bit of code generating it. > > the ssh error is also not quite as good as it could be, My feeling is > that it doesn't need to tag "Name or service not known" on to the end > of the line when it has already said it Could not resolve the > hostname! > > Please include my email address in any replies as I am not on this mailing list. > > Regards, Jon > > j at laptop:~$ sftp oops at unknown-web-qbcdef.com > Connecting to unknown-web-qbcdef.com... > ssh: Could not resolve hostname unknown-web-qbcdef.com: Name or > service not known > Couldn't read packet: Connection reset by peer > j at laptop:~$ > > > j at laptop:~$ ssh unknown-web-qbcdef.com > ssh: Could not resolve hostname unknown-web-qbcdef.com: Name or > service not known > j at laptop:~$ > _______________________________________________ > openssh-unix-dev mailing list > openssh-unix-dev at mindrot.org > https://lists.mindrot.org/mailman/listinfo/openssh-unix-dev >
Apparently Analagous Threads
- sftp backspace not working (OpenSSH_3.8.1p1 Debian-8.sarge.4)
- rsync: read error: Connection reset by peer
- read_data: read failure for 4 bytes to client 172.26.1.24. Error = Connection reset by peer
- rsync: read error: Connection reset by peer and - writefd_unbuffered failed
- rsync: read error: Connection reset by peer