2011-01-24 04:30:13 +0000 2011-01-24 04:30:13 +0000
62
62
Advertisement

hoe te ssh naar een ipv6 ubuntu in een LAN?

Advertisement

Ik ben in staat om mijn Ubuntu box te pingen via commando: (waar c2h2ttt staat vermeld in /etc/hosts)

c2h2@c2h2crawler:~/ttt$ ping6 -I eth1 c2h2ttt
PING c2h2ttt(c2h2ttt) from fe80::21b:21ff:fe22:e865 eth1: 56 data bytes
64 bytes from c2h2ttt: icmp_seq=1 ttl=64 time=10.3 ms
64 bytes from c2h2ttt: icmp_seq=2 ttl=64 time=2.06 ms
64 bytes from c2h2ttt: icmp_seq=3 ttl=64 time=1.33 ms

En als ik ssh -6 c2h2ttt probeer laat het zien:

c2h2@c2h2crawler:~/ttt$ ssh -6 c2h2ttt
ssh: connect to host c2h2ttt port 22: Invalid argument

Wat is het juiste commando?

  • *

Aan de server kant heeft /etc/ssh/sshd_config:

ListenAddress ::
ListenAddress 0.0.0.0

Ik kon ssh-en naar c2h2ttt via ipv4 op poort 22. en netstat -lnt | grep :22 is

root@c2h2think:~# netstat -lnt | grep :22
tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN
tcp6 0 0 :::22 :::* LISTEN

ufw wordt gebruikt en het staat elk inkomend verkeer toe op poort 22

root@c2h2think:~# ufw status
Status: active

To Action From
-- ------ ----
22 ALLOW Anywhere

En de iptables configuratie:

root@c2h2think:~# ip6tables -L -v -n
Chain INPUT (policy DROP 55 packets, 10758 bytes)
pkts bytes target prot opt in out source destination 
    0 0 ACCEPT all lo * ::/0 ::/0        

Chain FORWARD (policy DROP 0 packets, 0 bytes)
 pkts bytes target prot opt in out source destination 

Chain OUTPUT (policy DROP 0 packets, 0 bytes)
 pkts bytes target prot opt in out source destination 
    0 0 ACCEPT all * lo ::/0 ::/0
Advertisement
Advertisement

Antwoorden (3)

95
95
95
2011-01-24 06:08:40 +0000

Probeer de interface aan de ssh client te specificeren. Het ping6 hulpprogramma staat je toe om een interface op te geven, ssh heeft daar echter geen schakelaar voor, je moet deze syntaxis gebruiken:

ssh -6 fe80::21b:21ff:fe22:e865%eth1
9
9
9
2011-01-24 06:05:42 +0000

Link lokale adressen worden niet verondersteld gebruikt te worden voor SSH, ze zijn voor low-level protocol bootstrapping stuff. Als je geen ISP-provided prefix hebt om op je netwerk te gebruiken, genereer dan in plaats daarvan een uniek-lokale prefix van fd00::/8: http://en.wikipedia.org/wiki/Uniquelocaladdress

2
Advertisement
2
2
2015-11-09 12:58:11 +0000
Advertisement

Om SSH IPv6 te verbinden moet je IPv6 ISP connectiviteit op je computer hebben en probeer dan als.

root@hostname[~]# ssh -6 2205:f200:40:401::9ab4:8b43

en dit commando het zal de eerste keer vragen om de SSH sleutel te bevestigen. typ dan Y/Yes

Opmerking: 2205:f200:40:401::9ab4:8b43 betekent Uw IPv6. Dit is alleen een voorbeeld van IPv6, dus vergeet niet om je IPv6 te vervangen.

Advertisement

Gerelateerde vragen

19
12
11
16
8
Advertisement