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

¿cómo hacer ssh a un ubuntu ipv6 en una LAN?

Advertisement

Soy capaz de hacer ping a mi caja de Ubuntu a través de un comando: (donde c2h2ttt aparece en /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

Y cuando pruebo con ssh -6 c2h2ttt aparece:

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

¿Cuál es el comando correcto?

  • *

En el lado del servidor /etc/ssh/sshd_config tiene:

ListenAddress ::
ListenAddress 0.0.0.0

He podido hacer ssh a c2h2ttt a través de ipv4 en el puerto 22. y netstat -lnt | grep :22 es

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 se utiliza y su permitiendo cualquier tráfico entrante en el puerto 22

root@c2h2think:~# ufw status
Status: active

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

Y la configuración de iptables:

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

Respuestas (3)

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

Intenta especificar la interfaz al cliente ssh. La utilidad ping6 te permite especificar una interfaz, sin embargo ssh no tiene un interruptor para eso, tienes que usar esta sintaxis:

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

Las direcciones locales de enlace no se supone que se usen para SSH, son para cosas de arranque de protocolo de bajo nivel. Si no tiene un prefijo proporcionado por el ISP para usar en su red, entonces genere un prefijo local único de fd00::/8 en su lugar: http://en.wikipedia.org/wiki/Unique_dirección_local

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

Para conectar SSH IPv6 usted debe tener la conectividad IPv6 ISP en su computadora y luego intentar como.

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

y este comando le pedirá la primera vez que confirme la clave SSH. entonces escriba Y/Yes

Nota: 2205:f200:40:401::9ab4:8b43 significa su IPv6. Este es solo un ejemplo de IPv6, así que no olvide reemplazar su IPv6.

Advertisement

Preguntas relacionadas

19
12
11
16
4
Advertisement