Re: ssh
On Fri, Jul 08, 2005 at 12:31:04PM -0500, David Mohr wrote:
> On 7/8/05, Hjalmar the Destroyer <bytor1@lsn.se> wrote:
> > I am still having some problems with ssh. I am running the ssh server. When
> > I use nmap localhost on computer2 I get
> >
> > Starting nmap 3.81 ( http://www.insecure.org/nmap/ ) at 2005-07-08 19:11 CEST
> > Interesting ports on localhost.localdomain (127.0.0.1 ):
> > (The 1661 ports scanned but not shown below are in state: closed)
> > PORT STATE SERVICE
> > 22/tcp open ssh
> > 25/tcp open smtp
> >
> > Nmap finished: 1 IP address (1 host up) scanned in 0.159 seconds
> >
> > When I run nmap from my server on computer2 I get the following
> >
> > Starting nmap 3.81 ( http://www.insecure.org/nmap/ ) at 2005-07-08 19:13 CEST
> > All 1663 scanned ports on computer2 (192.168.1.2 ) are: closed
> >
> > Nmap finished: 1 IP address (1 host up) scanned in 0.429 seconds
> >
> > How can this be? Any help or tips would be greatly appreciated.
>
> Did you check with netstat to which addresses the smtp and ssh server
> are actually bound? Do you have a firewall (ok, nmap should've noticed
> that, but good to check anyways)?
>
> ~David
>
I do not have a firewall on computer2 and this is what I got after I ran
netstat -n -a
Active Internet connections (servers and established)
Proto Recv-Q Send-Q Local Address Foreign Address State
tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN
tcp 0 0 127.0.0.1:25 0.0.0.0:* LISTEN
tcp 0 0 192.168.1.2:33535 192.168.1.1:22
ESTABLISHED
udp 0 0 127.0.0.1:123 0.0.0.0:*
udp 0 0 192.168.1.2:123 0.0.0.0:*
udp 0 0 0.0.0.0:123 0.0.0.0:*
Active UNIX domain sockets (servers and established)
Proto RefCnt Flags Type State I-Node Path
unix 6 [ ] DGRAM 2397 /dev/log
unix 2 [ ACC ] STREAM LISTENING 2656 /tmp/.X11-unix/X0
unix 2 [ ACC ] STREAM LISTENING 2726
/tmp/ssh-VBEjMI1776/agent.1776
unix 2 [ ACC ] STREAM LISTENING 13908
/tmp/orbit-hjalmar/linc-1296-0-5b8fab5c39cd7
unix 2 [ ACC ] STREAM LISTENING 16182
/tmp/orbit-hjalmar/linc-13de-0-1fe7f0fbd2751
unix 2 [ ACC ] STREAM LISTENING 16193
/tmp/orbit-hjalmar/linc-13e0-0-44faee6dd6c75
unix 3 [ ] STREAM CONNECTED 23423 /tmp/.X11-unix/X0
unix 3 [ ] STREAM CONNECTED 23422
unix 4 [ ] STREAM CONNECTED 16458 /tmp/.X11-unix/X0
unix 3 [ ] STREAM CONNECTED 16457
unix 3 [ ] STREAM CONNECTED 16201 /tmp/orbit-hjalmar/linc-13de-0-1fe7f0fbd2751
1
unix 3 [ ] STREAM CONNECTED 16200
unix 3 [ ] STREAM CONNECTED 16199
/tmp/orbit-hjalmar/linc-13e0-0-44faee6dd6c7
5
unix 3 [ ] STREAM CONNECTED 16198
unix 3 [ ] STREAM CONNECTED 16185
/tmp/orbit-hjalmar/linc-13de-0-1fe7f0fbd275
1
unix 3 [ ] STREAM CONNECTED 16184
unix 3 [ ] STREAM CONNECTED 16181
/tmp/orbit-hjalmar/linc-1296-0-5b8fab5c39cd
7
unix 3 [ ] STREAM CONNECTED 16180
unix 3 [ ] STREAM CONNECTED 16175 /tmp/.X11-unix/X0
unix 3 [ ] STREAM CONNECTED 16174
unix 2 [ ] DGRAM 13904
unix 3 [ ] STREAM CONNECTED 2750 /tmp/.X11-unix/X0
unix 3 [ ] STREAM CONNECTED 2749
unix 3 [ ] STREAM CONNECTED 2740 /tmp/.X11-unix/X0
unix 3 [ ] STREAM CONNECTED 2739
unix 3 [ ] STREAM CONNECTED 2729 /tmp/.X11-unix/X0
unix 3 [ ] STREAM CONNECTED 2728
unix 3 [ ] STREAM CONNECTED 2712 /tmp/.X11-unix/X0
unix 3 [ ] STREAM CONNECTED 2658
unix 2 [ ] DGRAM 2630
unix 2 [ ] DGRAM 2500
unix 2 [ ] DGRAM 2409
Clyde
Reply to:
- References:
- ssh
- From: Hjalmar the Destroyer <bytor1@lsn.se>
- Re: ssh
- From: Modestas Vainius <geromanas@mailas.com>
- Re: ssh
- From: Hjalmar the Destroyer <bytor1@lsn.se>
- Re: ssh
- From: David Mohr <squisher@gmail.com>