一.准备工作
1.下载并安装SSH连接工具Finalshell:【点击进入】
2.域名解析Cloudflare:【点击进入】
二.开源项目NetDeploy AI:【点击进入】
1.使用文档:【点击进入】
2.Windows 一条命令安装
$repo=Join-Path ([Environment]::GetFolderPath('Desktop')) 'netdeploy-ai-git'; if(-not(Test-Path $repo)){git clone https://github.com/slobys/netdeploy-ai.git $repo; if($LASTEXITCODE -ne 0){throw 'Git clone failed'}}; $start=Join-Path $repo 'scripts\QuickStart-Windows.ps1'; powershell.exe -NoProfile -ExecutionPolicy Bypass -File $start
3.谷歌云更改root密码(可能用到)
curl -fsSLo /tmp/netdeploy-gcp-root-setup.sh https://raw.githubusercontent.com/slobys/netdeploy-ai/main/scripts/gcp-root-setup.sh
sudo bash /tmp/netdeploy-gcp-root-setup.sh --enable-root-password-ssh
4、一键更改root密码
echo root:ZKrjSvGT9n5jXAfa |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










