Termux开启ipv6

vim $PREFIX/etc/ssh/sshd_config

AddressFamily any
ListenAddress ::
ListenAddress 0.0.0.0


重启:pkill sshd &&sshd 工具依赖:pkg install iproute2 查看:`ip -6 addr list scope global |grep "inet6" | sed -n 's/.*inet6 \([0-9a-f:]\+\).*/\1/p' | head -n 1`

原文链接

posted @ 2024-11-29 12:04  基础狗  阅读(4)  评论(0编辑  收藏  举报