Eu sou capaz de executar ping na minha caixa do Ubuntu via comando: (onde c2h2ttt está listado em / 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
E quando eu tento ssh -6 c2h2ttt
, mostra:
c2h2@c2h2crawler:~/ttt$ ssh -6 c2h2ttt
ssh: connect to host c2h2ttt port 22: Invalid argument
Qual é o comando correto?
No lado do servidor / etc / ssh / sshd_config tem:
ListenAddress ::
ListenAddress 0.0.0.0
Eu era capaz de ssh para c2h2ttt via ipv4 na porta 22. e netstat -lnt | grep :22
é
root@c2h2think:~# netstat -lnt | grep :22
tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN
tcp6 0 0 :::22 :::* LISTEN
O ufw é usado e permite qualquer tráfego de entrada na porta 22
root@c2h2think:~# ufw status
Status: active
To Action From
-- ------ ----
22 ALLOW Anywhere
E a configuração do 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
netstat -lnt | grep :22
(soquetes numéricos tcp | de escuta aberta | contendo: 22) diz.