Bug 2251 - Wrong error-description on connect via domain
Summary: Wrong error-description on connect via domain
Status: CLOSED WORKSFORME
Alias: None
Product: Portable OpenSSH
Classification: Unclassified
Component: ssh (show other bugs)
Version: 6.6p1
Hardware: amd64 Linux
: P5 minor
Assignee: Assigned to nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-07-02 11:06 AEST by Ruben Kelevra
Modified: 2015-08-11 23:03 AEST (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ruben Kelevra 2014-07-02 11:06:43 AEST
Since some versions the error-decription on closed port is wrong when using domains to connect (with a non-standard port - if it matters).

$ ssh -p 1337 a.b.c.net
ssh: connect to host a.b.c.net port 1337: Network is unreachable

$ nslookup dag.wk.freifunk.net
Server:		8.8.8.8
Address:	8.8.8.8#53

Non-authoritative answer:
Name:	a.b.c.net
Address: 123.123.123.123

$ ssh -p 1337 123.123.123.123 
ssh: connect to host 123.123.123.123 port 1337: Connection refused

Version:
OpenSSH_6.6.1p1, OpenSSL 1.0.1h 5 Jun 2014
System:
Arch Linux
Version: Rolling release state today 2:00 AM CEST

Expected behavoir is connecting via domain and ip does produce the same errormessage: "Connection refused" because the port is closed.
Comment 1 Damien Miller 2014-07-03 10:49:38 AEST
Could you please attach debug output from each case? i.e. "ssh -vvv ..."
Comment 2 Damien Miller 2015-05-22 15:46:54 AEST
10 months with no follow-up == no bug
Comment 3 Damien Miller 2015-08-11 23:03:58 AEST
Set all RESOLVED bugs to CLOSED with release of OpenSSH 7.1