Bug 392 - ssh some_acct@localhost generates error message but works
Summary: ssh some_acct@localhost generates error message but works
Status: CLOSED INVALID
Alias: None
Product: Portable OpenSSH
Classification: Unclassified
Component: ssh (show other bugs)
Version: -current
Hardware: UltraSPARC Solaris
: P2 normal
Assignee: OpenSSH Bugzilla mailing list
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-09-05 05:40 AEST by Robert Wolf
Modified: 2004-04-14 12:24 AEST (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Robert Wolf 2002-09-05 05:40:45 AEST
Generates an error '... Network is unreachable ...The authenicity of 
host 'localhost ...established' but it works

# ssh maint@localhost
ssh: connect to address ::1 port 22: Network is unreachable
The authenticity of host 'localhost (127.0.0.1)' can't be established.
RSA key fingerprint is c8:67:73:a6:ca:1a:03:69:ba:37:66:6e:f7:de:d0:29.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added 'localhost' (RSA) to the list of known hosts.
maint@localhost's password:
Last login: Wed Sep  4 15:22:16 2002 from sun06.nmiinc.co
Sun Microsystems Inc.   SunOS 5.8       Generic February 2000
Sun Microsystems Inc.   SunOS 5.8       Generic February 2000

# tty; who; exit
/dev/pts/3
maint      pts/2        Sep  4 11:47    (192.168.2.249)
maint      pts/3        Sep  4 15:25    (localhost)
Connection to localhost closed.

# cat /etc/hosts.allow
sshd: 127.0.0.1,192.168.2.
Comment 1 Darren Tucker 2002-09-05 08:32:02 AEST
Both of these are normal.

The "Network is unreachable" is to address ::1 which is IPv6 shorthand for the 
loopback adapter.  Ignore it, use ssh -4 to force IPv4, set up your IPv6 
loopback ("ifconfig lo0 inet6 ::1/128"), or recompile after configuring with 
--with-ipv4-default. 

The second one is a warning that the host presented a host key that wasn't known 
by the client.  This will only happen once per user.  To avoid this, add the 
host's key to the client's global /usr/local/etc/ssh_known_hosts file.

It would be nice if ssh_config had an option for selecting IP4/6 to match the -4 
and -6 command-line options (or is there one and I missed it?)
Comment 2 Damien Miller 2004-04-14 12:24:18 AEST
Mass change of RESOLVED bugs to CLOSED