[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: newbie: ssh, dns



Arkadiusz Miskiewicz a écrit :
> On/Dnia Thu, Mar 01, 2001 at 03:28:38PM +0100, Charles Goyard wrote/napisa³(a)
> >      -4      Forces sshd to use IPv4 addresses only.
> >      -6      Forces sshd to use IPv6 addresses only.
> -6 means create PF_INET6 socket and by default you can communicate throught
> such socket with ipv4 client/server (using ipv4-mapped ipv6 addresses). If you
> want to allow using _only_ ipv6 addresses on such socket you need USAGI patch
> for your kernel.
> 
> > for the client, ssh -6 will do the trick.
> It won't. Try ssh -6 ::ffff:ip.v4.add.ress

Let's try (my sshd runs with the -6 switch, remember ?) :

~$ ssh localhost
cgo@localhost's password:

-> works

~$ ssh ip6-localhost
ssh: ip6-localhost: Name or service not known

-> ooops

~$ ssh -6 ip6-localhost
cgo@ip6-localhost's password:

-> works

~$ ssh -6 ::ffff:127.0.0.1  # what you suggested
cgo@::ffff:127.0.0.1's password:

-> works (it also works with my public IP)

~$ ssh -V
SSH Version OpenSSH-1.2.3, protocol version 1.5.
Compiled with SSL.

?

Tell me if I miss the point, but it works for me...
Oh, note that all the IPv6 adresse I have are in my /etc/hosts file
(no AAAAs), and are link scoped.


-- 
Charles 



Reply to: