SSH connection problem

Dustin Breese dustin.breese at gmail.com
Thu Sep 11 15:55:32 UTC 2008


Cool, good job in debugging.

Now, your netstat output shows that the listener is only using ipv6,
so lets try forcing it to ipv4.  No idea if this is the issue or not
-- Does your laptop show the same netcat output?

To force to IPV4 on your desktop:
$ sudo vi /etc/ssh/sshd_config

At the top, uncomment
ListenAddress 0.0.0.0

And then
$ sudo /etc/init.d/ssh restart

-Dustin

On Thu, Sep 11, 2008 at 9:28 AM, Zhengguo Xu <tworiversfolk at gmail.com> 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.
>
>
> --
> ubuntu-users mailing list
> ubuntu-users at lists.ubuntu.com
> Modify settings or unsubscribe at:
> https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
>
>




More information about the ubuntu-users mailing list