[Bug 2626] New: ssh 172.10 resolves to ssh 172.0.0.10
bugzilla-daemon at bugzilla.mindrot.org
bugzilla-daemon at bugzilla.mindrot.org
Tue Oct 18 14:51:57 AEDT 2016
https://bugzilla.mindrot.org/show_bug.cgi?id=2626
Bug ID: 2626
Summary: ssh 172.10 resolves to ssh 172.0.0.10
Product: Portable OpenSSH
Version: 7.3p1
Hardware: 68k
OS: Mac OS X
Status: NEW
Severity: normal
Priority: P5
Component: Miscellaneous
Assignee: unassigned-bugs at mindrot.org
Reporter: rajkipa at yahoo.com
Hello Team,
I found something weird today, i tried to ssh into a box with the below
command, instead of throwing an error it filled the middle to octet
with zeros.
Looks like ssh is greed and tries to left-pad everything with zero
until it gets 4 octets. See the below two examples
1.
hostname $/usr/local/bin/ssh -v 172.10
OpenSSH_7.3p1, OpenSSL 1.0.2j 26 Sep 2016
debug1: Reading configuration data /Users/name/.ssh/config
debug1: /Users/name/.ssh/config line 2: Applying options for *
debug1: Reading configuration data /usr/local/etc/ssh/ssh_config
debug1: Connecting to 172.10 [172.0.0.10] port 22.
^C
hostname $
2.
hostname $ssh -v 172
OpenSSH_6.9p1, LibreSSL 2.1.8
debug1: Reading configuration data /Users/name/.ssh/config
debug1: /Users/name/.ssh/config line 2: Applying options for *
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: /etc/ssh/ssh_config line 21: Applying options for *
debug1: Connecting to 172 [0.0.0.172] port 22.
debug1: connect to address 0.0.0.172 port 22: No route to host
ssh: connect to host 172 port 22: No route to host
--
You are receiving this mail because:
You are watching the assignee of the bug.
More information about the openssh-bugs
mailing list