bash -c "$(curl -sSL https://resource.fit2cloud.com/1panel/package/v2/quick_start.sh)"
su -
apt update
apt install openssh-server -y
systemctl enable --now ssh
-
添加网络源(以官方源为例,如果网络较慢可替换为国内镜像)
在文件末尾或适当位置添加以下内容(针对 Debian 13trixie):deb http://mirrors.tuna.tsinghua.edu.cn/debian trixie main contrib non-free deb http://mirrors.tuna.tsinghua.edu.cn/debian-security trixie-security main contrib non-free deb http://mirrors.tuna.tsinghua.edu.cn/debian trixie-updates main contrib non-free
国内镜像(更快):可将
deb.debian.org替换为mirrors.ustc.edu.cn、mirrors.tuna.tsinghua.edu.cn等。 -
保存并退出(
nano按Ctrl+O保存,Ctrl+X退出)。