我可以通过命令 ping 我的 Ubuntu 框:(其中 c2h2ttt 列在 /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
Run Code Online (Sandbox Code Playgroud)
当我尝试时,ssh -6 c2h2ttt它显示:
c2h2@c2h2crawler:~/ttt$ ssh -6 c2h2ttt
ssh: connect to host c2h2ttt port 22: Invalid argument
Run Code Online (Sandbox Code Playgroud)
正确的命令是什么?
在服务器端 /etc/ssh/sshd_config 有:
ListenAddress ::
ListenAddress 0.0.0.0
Run Code Online (Sandbox Code Playgroud)
我能够通过端口 22 上的 ipv4 ssh 到 c2h2ttt。并且netstat …