ssh连接小鸡

有三种办法,一是原生支持ipv6,二是支持v6的在线终端,三是用其他vps做跳板,四是使用teredo tunnel​
本教程只提供无原生v6的一种办法就是使用隧道

teredo 隧道

本地电脑添加IPV6隧道代码:
开启隧道:
Win+X 打开 Windows PowerShell(管理员)(右击自动粘贴)
netsh interface teredo set state enterpriseclient server=default
netsh interface ipv6 reset
netsh interface teredo set state server=teredo.remlab.net
关闭隧道:
Win+X 打开 Windows PowerShell(管理员)(右击自动粘贴)
netsh interface Teredo set state disable
查看隧道状态:
netsh int ipv6 show teredo state

访问ipv4资源

dns64

  1. 命令行输入以下内容(德鸡专用)

    echo -e "search blue.kundencontroller.de\noptions rotate\nnameserver 2001:67c:2b0::4\nnameserver 2001:67c:2b0::6" > /etc/resolv.conf
  2. 其他ipv6only-server

    echo -e "nameserver 2a01:4f8:c2c:123f::1" > /etc/resolv.conf

如果失效,可以替换指令中的dns64地址

Cloudflare WARP脚本

使用Cloudflare WARP仅仅可以让你的小鸡直接访问ipv4资源(直接获取访问的ipv4地址),并不是拥有ipv4地址,下面开始吧

下面两个脚本任选其一

  1. 脚本1(fscarmen)

    wget -N https://gitlab.com/fscarmen/warp/-/raw/main/menu.sh && bash menu.sh
    wget -N https://gitlab.com/fscarmen/warp/-/raw/main/warp-go.sh && bash warp-go.sh
  2. 脚本2(P3TERX)

    bash <(curl -fsSL git.io/warp.sh) menu

至此,你的小鸡便可以访问ipv4资源了,试着ping下吧

QQ群:572890766