支持的操作系统 (CentOS 7+、Ubuntu 16+、Debian 8+),操作流程是一样的。在申请SSL证书的时候,请输入对应系统的命令,其他的是一样的。
1.亚马逊申请连接:https://portal.aws.amazon.com/billing/signup#/start
2.安装finalshell,下载安装连接:https://www.hostbuf.com/
3.Debian默认用户名:admin
4.开启root登入:sudo -i
5.修改authorized_keys文件(即ssh证书):vi .ssh/authorized_keys
把ssh-rsa之前的文件都删除掉了。(要按i才能删除)
编辑ssh配置文件
按ESC键
英文的冒号“:”
wq回车
6.nano /etc/ssh/sshd_config
找到PermitRootLogin,把前面的#删除改成下面这样
PermitRootLogin yes
ctrl+x保存退出选择y然后回车
然后
Reboot 重启服务器。
可以使用root用户名配合秘秘登入了
建议使用DD命令直接恢复服务器为ROOT状态,
重装命令
bash <(wget --no-check-certificate -qO- 'https://moeclub.org/attachment/LinuxShell/InstallNET.sh') -d 11 -v 64 -a -firmware -p 111111
更新组件
apt update -y && apt install -y curl && apt install -y socat && apt install wget -y
BBR
wget -N --no-check-certificate "https://raw.githubusercontent.com/chiakge/Linux-NetSpeed/master/tcp.sh" && chmod +x tcp.sh && ./tcp.sh
7.开启防火墙
(1) iptables -P INPUT ACCEPT
(2) iptables -P FORWARD ACCEPT
(3) iptables -P OUTPUT ACCEPT
(4) iptables -F
(5) apt-get purge netfilter-persistent
reboot 重启服务器
8.申请SSL证书
(1) apt update -y && apt-get install curl -y && apt install -y socat # Debian/Ubuntu 命令
(2) yum update -y #CentOS 命令
(3) yum install -y curl #CentOS 命令
(4) yum install -y socat #CentOS 命令
(5)curl https://get.acme.sh | sh
(6) ~/.acme.sh/acme.sh --register-account -m 替换自己的邮箱
(7) ~/.acme.sh/acme.sh --issue -d 替换自己的域名 --standalone
(8)~/.acme.sh/acme.sh --installcert -d 替换自己的域名 --key-file /root/private.key --fullchain-file /root/cert.crt
(9)公钥路径:/root/cert.crt
(10)私钥路径:/root/private.key
9.安装xray面板: bash <(curl -Ls https://raw.githubusercontent.com/vaxilu/x-ui/master/install.sh)
10.安装BBR加速(此BBR不兼容Centos和Ubuntu系统):
wget -N --no-check-certificate "https://raw.githubusercontent.com/chiakge/Linux-NetSpeed/master/tcp.sh" && chmod +x tcp.sh && ./tcp.sh
鼠标点进窗口,选择NO,回车;
再输入Y,回车
重启
11.安装v2ray,下载链接:https://github.com/2dust/v2rayN/releases
12.如果打不开v2rayN.exe,可以安装.NET Framework 4.8,下载链接:https://docs.microsoft.com/zh-cn/dotnet/framework/install/guide-for-developers