Debian 13 换源与常用配置
新机器装完第一件事就是换源和配 SSH,记一下省的每次翻笔记。
换源
deb https://mirrors.tuna.tsinghua.edu.cn/debian/ trixie main contrib non-free-firmware
SSH
PermitRootLogin prohibit-password
PasswordAuthentication no
MaxAuthTries 3
改完记得先确认密钥能登,再重启 sshd,不然容易把自己关外面。
时区和时间同步
timedatectl set-timezone Asia/Shanghai
systemctl enable --now systemd-timesyncd