下面以 SecureCRT 连接 Debian 服务器(SSH 方式) 为例,一步一步说明。
sudo apt update
sudo apt install openssh-server -y
sudo systemctl enable ssh
sudo systemctl start ssh
systemctl status ssh
看到 active (running) 即可。
ip a
找到你的 IP(如 192.168.1.100 或公网 IP)。
sudo adduser youruser
点击: File → Quick Connect(或 Ctrl + Shift + Q)
点击 Connect
sudo ufw allow 22
Debian 默认可能禁止 root 登录:
sudo nano /etc/ssh/sshd_config
确认:
PermitRootLogin no
PasswordAuthentication yes
修改后:
sudo systemctl restart ssh
SecureCRT: Options → Session Options → Terminal → Appearance
如果你愿意,可以告诉我:
我可以直接按你的环境给你更精确的步骤。