关于vps建tz的简单方法

发布时间 2023-06-02 14:46:33作者: yzhpxd

ubuntu20.04 root登录

echo root:密码@@ |sudo chpasswd root
sudo sed -i ‘s/^#?PermitRootLogin./PermitRootLogin yes/g’ /etc/ssh/sshd_config
sudo sed -i 's/^#?PasswordAuthentication.
/PasswordAuthentication yes/g’ /etc/ssh/sshd_config
sudo reboot

一键脚本

bash <(curl -Ls https://raw.githubusercontent.com/vaxilu/x-ui/master/install.sh)

如果是甲骨文云,需要打开端口
iptables -P INPUT ACCEPT
iptables -P FORWARD ACCEPT
iptables -P OUTPUT ACCEPT
iptables -F
iptables-save

apt-get install iptables-
persistent

netfilter-persistent save
netfilter-persistent reload

测试ip的状态脚本
wget -O nf https://github.com/sjlleo/netflix-verify/releases/download/v3.1.0/nf_linux_arm64 && chmod +x nf && ./nf

warp安装
wget https://raw.githubusercontent.com/fscarmen/warp/main/menu.sh&&bash menu.sh

curl -6 ip.sb 是否有ipv6