ssh -6 root@1234:5678:0:d1::6a4:9999%eth0 -i id_rsa
@
和%
之间就是服务器的 ipv6 地址.eth0
是ipv6 必需要加的一个设备号, 也多是eth1
或eth2
之类的.-i
命令后面是咱们的私钥文件.服务器
不一样域名服务商之间可能会有差异, 通常是添加一个 AAAA
记录, 输入你的 ipv6 地址便可.ssh
使用 dig AAAA example.com
就能够查看是否添加成功.code
ip_address() = ip4_address() | ip6_address() ip4_address() = {0..255, 0..255, 0..255, 0..255} ip6_address() = {0..65535, 0..65535, 0..65535, 0..65535, 0..65535, 0..65535, 0..65535, 0..65535} port_number() = 0..65535
ipv6 的地址并非 6 个数, 而是 8 个 0..65535 的数.ip