下面给你一份SecureCRT 连接 Debian 的常见设置步骤,适用于 SSH(最常见) 方式。
在 Debian 上执行:
sudo systemctl status ssh
如果没装:
sudo apt update
sudo apt install openssh-server
sudo systemctl enable --now ssh
sudo ufw status
如有启用,允许 SSH:
sudo ufw allow ssh
ip a
看 eth0 或 ens33 里的 inet
File → Connect → New Session192.168.1.100)22debian)ssh-keygen 在 Debian 或 SecureCRT 生成密钥Session Options → SSH2 → PublicKey → 导入私钥SecureCRT 老版本时:
Session Options → SSH2AES、SHA2、ECDHDebian 默认禁止 root SSH:
sudo nano /etc/ssh/sshd_config
改:
PermitRootLogin yes
然后:
sudo systemctl restart ssh
22 → 22如果你告诉我:
我可以给你更精确的一步到位配置。