SSH connection problem

Mark Haney mhaney at ercbroadband.org
Thu Sep 11 15:36:56 UTC 2008


Zhengguo Xu wrote:
> ok, firstly, Dustin you're right. a) DESKTOP to LAPTOP is ok b) LAPTOP to
> DESKTOP is NOT OK
> 
> i didn't know the process sshd exist until Mark and you mentioned it (well,
> I'm a newbie as you can see). so i checked the system monitor in both pcs.
> 
> at first, i didn't find it on any of the pc. however, when i connect from
> desktop to laptop, there's "sshd:MYNAME at NOTTY" running on laptop.
> 
> i installed openssh-server on both machines and as far as i remember i
> didn't do any more configuration. so i have no idea why sshd is runing
> automatically on laptop but not on the other.
> 
> how should i start sshd?
> 
> i googled and the first several results are from Ubuntu forum :-)
> 
> according to some post i should:
> 
> /etc/init.d/sshd restart
> 
> however, i don't have sshd under /etc/init.d/, only ssh. so i did:
> 
> sudo /etc/init.d/ssh start
> 
> output is:
> 
>  * Starting OpenBSD Secure Shell server sshd                             [
> OK ]
> 
> after that i tried to connect from laptop again but to no avail.
> 
> netstat -an | grep 22 | grep LISTEN gives:
> 
> tcp6       0      0 :::22                   :::*
> LISTEN
> unix  2      [ ACC ]     STREAM     LISTENING     29681
> /tmp/orbit-anotherpcname/linc-1c75-0-1da3daf222050
> unix  2      [ ACC ]     STREAM     LISTENING     32322
> /tmp/orbit-anotherpcname/linc-1d74-0-380e8440f14f2
> unix  2      [ ACC ]     STREAM     LISTENING     32524
> /tmp/orbit-anotherpcname/linc-1d78-0-4a73be62218ae
> 
> i can conect desktop locally ("ssh localhost" works).
> 
> so any suggestion?
> 
> thanks again.
> 
> 

Are you running iptables? (Okay for n00b, that would be a firewall) That 
could be blocking access to port 22.  That's my first guess.  If you're 
still getting timeouts and not a request for login, then something it 
not allowing you access to that port.

You've demonstrated that you can ssh between the 2 boxes in one 
direction, that eliminates a network problem for the most part.  Try 
shutting down your firewall on your desktop and try to ssh from the 
laptop again.


-- 
Libenter homines id quod volunt credunt -- Caius Julius Caesar


Mark Haney
Sr. Systems Administrator
ERC Broadband
(828) 350-2415

Call (866) ERC-7110 for after hours support




More information about the ubuntu-users mailing list