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.
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?)
Mass change of RESOLVED bugs to CLOSED