下面给你一个从零开始用 SecureCRT 连接 Linux 服务器的实用步骤,适用于大多数场景(SSH 方式)。
确保 Linux 已开启 SSH 服务:
# 查看 ssh 服务状态
systemctl status sshd
# 如果没开,启动并设置开机自启
systemctl start sshd
systemctl enable sshd
确认防火墙允许 22 端口(或你自定义的 SSH 端口):
firewall-cmd --list-all
# 或
iptables -L
你需要以下信息:
查看 IP:
ip addr
# 或
ifconfig
ssh-keygen -t rsa
# 一路回车
cat ~/.ssh/id_rsa.pub >> ~/.ssh/authorized_keys
chmod 600 ~/.ssh/authorized_keys
把 id_rsa(私钥)下载到 Windows。
ping IP)Permission denied (publickey,password)
SecureCRT:
Options → Session Options → Terminal → Appearance
Font: 宋体 / Consolas
Character encoding: UTF-8
Ctrl + T如果你愿意,可以告诉我:
我可以给你更针对性的步骤截图级说明。