Unable to SSH to localhost
I am using Debian Sarge "testing" with address 172.16.9.8 .
Today, I found that
"ssh: connect to host 172.16.9.8 port 22: Invalid argument"
"ssh: connect to host localhost port 22: Connection timed out"
after a few minutes.
# Used by ifup(8) and ifdown(8). See the interfaces(5) manpage or
# /usr/share/doc/ifupdown/examples for more information.
iface eth0 inet static
127.0.0.1 localhost localhost.localdomain
172.16.9.8 masatran localhost
192.168.36.250 research.iiit.ac.in research
192.168.36.200 students.iiit.ac.in students
/etc/rc2.d (2 is the default runlevel) contains:
K11anacron S20canna S20rebootmgr S80noflushd
S01lokkit S20dbus-1 *S20ssh* S89anacron
S10sysklogd S20gpm S20vservers S89atd
S11klogd S20hddtemp S20xfs S89cron
S18portmap *S20inetd* S20xfs-xtt S91apache
S20acpid S20inetutils-inetd *S20xinetd* S99gdm
S20alsa S20makedev S20xpilots S99rmnologin
S20apmd S20pcmcia S21aumix S99stop-bootlogd
S20binfmt-support S20realtime S25mdadm
*-ed services are relevant to this problem. Emphasis is mine.
eth0 Link encap:Ethernet HWaddr 00:00:E2:9F:E1:60
inet addr:172.16.9.8 Bcast:172.16.9.63 Mask:255.255.255.192
inet6 addr: fe80::200:e2ff:fe9f:e160/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:331809 errors:0 dropped:0 overruns:0 frame:0
TX packets:102431 errors:0 dropped:0 overruns:0 carrier:0
RX bytes:131573835 (125.4 MiB) TX bytes:12296458 (11.7 MiB)
"nmap localhost" outputs:
Starting nmap 3.50 ( http://www.insecure.org/nmap/ ) at 2005-01-26 23:08 IST
Note: Host seems down. If it is really up, but blocking our ping probes, try -P0
Nmap run completed -- 1 IP address (0 hosts up) scanned in 24.059 seconds
ssh to "research" and "students" servers is working. So the network
connection is working.
I tried rebooting but it did not help.
Gnome applications take a few minutes to start, which I read could be
because of DNS/resolver problems
Could that be related to this?
Recently the Data Engineering lab (in which I am) moved to new rooms. Could
that be the cause of the problem?
Thanks in advance.
Deepak, R. <http://research.iiit.ac.in/~masatran/>