sshd uses ipv6 by default even if it's not supported on my router

Trent Lloyd lathiat at bur.st
Sun Sep 11 18:16:48 CDT 2005


On Sun, Sep 11, 2005 at 07:02:15PM -0400, Alex Paquet-Bouchard wrote:
> lsof -i output for sshd (it shows ipv6):
> sshd      5493      root    3u  IPv6   8583       TCP *:33333 (LISTEN)
> 
> but if I try to connect to it localy ie: ssh 127.0.0.1:33333, I get --> ssh:
> 127.0.0.1:33333: Name or service not known
> So I can't connect, I'm guessing becauses it uses ipv6...

So in fact your problem has nothing to do with IPv6, this tells you the
socket will do both (although I can understand how that may be
confusing)

If you read "man ssh" you will see that

     -p port
             Port to connect to on the remote host.  This can be specified on
             a per-host basis in the configuration file.

So what you want to do is
	ssh 127.0.0.1 -p 33333

Cheers,
Trent

> 
> Thanks, Alex
> 
> On 9/11/05, Trent Lloyd <lathiat at bur.st> wrote:
> 
>     Alx,
> 
>     On Sun, Sep 11, 2005 at 06:38:14PM -0400, Alex Paquet-Bouchard wrote:
>     > I can't use it, not even localy.. and I need to use it remotly.  I'm
>     > recompiling the kernel right now and removing all ipv6
>     support.  Hopefully that
>     > should fix it.
> 
>     Umm, thats a bad idea, there is absolutely no need to do that.
> 
>     Can you please describe the problem you are having? ssh uses *both* ipv4
>     and ipv6 by default, so unless you changed the configuration to use ipv6
>     only you should have no problems.
> 
>     Can you please describe the specific problem you are having?
> 
>     Cheers,
>     Trent
> 
>     >
>     > Thanks,
>     > Alex
>     >
>     >
>     > On 9/11/05, Trent Lloyd < lathiat at bur.st> wrote:
>     >
>     >     Because you have link local and loopback addresses it can listen on.
>     >
>     >     Is it causing a problem?
>     >
>     >     Cheers,
>     >     Trent
>     >
>     >     On Sun, Sep 11, 2005 at 06:28:41PM -0400, Alex Paquet-Bouchard wrote:
>     >     > Anyone know why sshd would start automatically using ipv6 instead
>     of ipv4
>     >     even
>     >     > if my router or connection doesn't support it?
>     >     >
>     >     > Alex
>     >
>     >     > --
>     >     > ubuntu-devel mailing list
>     >     > ubuntu-devel at lists.ubuntu.com
>     >     > http://lists.ubuntu.com/mailman/listinfo/ubuntu-devel
>     >
>     >
>     >     --
>     >     Trent Lloyd < lathiat at bur.st >
>     >     Bur.st Networking Inc.
>     >
>     >
> 
>     > --
>     > ubuntu-devel mailing list
>     > ubuntu-devel at lists.ubuntu.com
>     > http://lists.ubuntu.com/mailman/listinfo/ubuntu-devel
> 
> 
>     --
>     Trent Lloyd <lathiat at bur.st>
>     Bur.st Networking Inc.
> 
> 

-- 
Trent Lloyd <lathiat at bur.st>
Bur.st Networking Inc.



More information about the ubuntu-devel mailing list