Unable to SSH to localhost
I am using Debian Sarge "testing" with address 172.16.9.8 .
Today, I found that
"ssh 172.16.9.8"
outputs
"ssh: connect to host 172.16.9.8 port 22: Invalid argument"
immediately.
"ssh localhost"
outputs
"ssh: connect to host localhost port 22: Connection timed out"
after a few minutes.
/etc/network/interfaces contains:
# Used by ifup(8) and ifdown(8). See the interfaces(5) manpage or
# /usr/share/doc/ifupdown/examples for more information.
auto eth0
iface eth0 inet static
address 172.16.9.8
network 172.16.9.0
netmask 255.255.255.192
broadcast 172.16.9.63
gateway 172.16.9.1
/etc/hosts contains:
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
64.71.131.140 freechess.org
172.16.9.7 knuth
192.168.36.228 aryabhatta
/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.
"ifconfig" outputs:
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
collisions:0 txqueuelen:1000
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
<http://www.essenz.com/support/comp.unix.bsd.freebsd.misc/Aug/20/201971.html>.
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/>
Reply to: