在 Debian 下配置 SecureCRT,主要包括 安装、首次配置、连接 Linux 主机(SSH) 以及 中文/字体等常见问题处理。下面按步骤说明。
一、在 Debian 上安装 SecureCRT
SecureCRT 官方提供 Linux 版本(支持 Debian / Ubuntu)。
1. 下载 SecureCRT(Linux 版)
官网地址(需注册账号):
https://www.vandyke.com/products/securecrt/
选择:
- SecureCRT for Linux (64-bit .deb)(Debian 推荐)
例如:
SecureCRT-9.x.xx-xxx.Ubuntu20.x86_64.deb
2. 安装依赖(推荐)
sudo apt update
sudo apt install -y libssl-dev libicu-dev
3. 安装 SecureCRT
sudo dpkg -i SecureCRT-*.deb
如有依赖错误:
sudo apt -f install
4. 启动 SecureCRT
securecrt
或:
/usr/bin/SecureCRT
二、首次配置 SecureCRT
1. 选择配置文件位置
首次启动会提示:
- Personal profile(推荐)
- System profile
一般选择 Personal profile
2. 设置会话默认参数(建议)
Options → Global Options
重点检查:
-
Terminal → Appearance
- Font:DejaVu Sans Mono / WenQuanYi Micro Hei Mono
- Encoding:UTF-8
-
SSH
- Protocol version:2(推荐)
- Key exchange:勾选
curve25519-sha256
三、配置 SSH 连接 Debian / Linux 服务器
1. 新建 Session
File → Connect → New Session
按向导:
1️⃣ 连接类型
Protocol:SSH2
2️⃣ 主机信息
Hostname: 服务器IP
Port: 22(默认)
Username: 登录用户名
3️⃣ 认证方式
推荐顺序:
- PublicKey
- Password
2. 使用密钥登录(推荐)
生成密钥(如没有)
在 Debian 本地:
ssh-keygen -t ed25519
上传公钥
ssh-copy-id user@server_ip
在 SecureCRT 指定私钥
Session Options → SSH2 → Authentication
取消 Password,勾选 PublicKey
并选择:
~/.ssh/id_ed25519
3. 中文与乱码问题解决(非常重要)
终端编码
Session Options → Terminal → Appearance
Character encoding:UTF-8
Debian 服务器确认
locale
如不是 UTF-8:
sudo dpkg-reconfigure locales
选择:
zh_CN.UTF-8
或
en_US.UTF-8
四、常见问题解决
1. 无法启动(libpng / libssl 错误)
sudo apt install libpng16-16 libssl1.1
或根据报错安装对应库。
2. 无法打开串口(Serial)
确保用户有权限:
sudo usermod -aG dialout $USER
reboot
3. 复制粘贴快捷键
SecureCRT Linux 版默认:
- 复制:
Ctrl + Insert - 粘贴:
Shift + Insert
可改:
Options → Global Options → Terminal → Mouse
4. 使用 root 登录 Debian(不推荐)
Debian 默认禁止 root SSH:
sudo nano /etc/ssh/sshd_config
修改:
PermitRootLogin yes
重启:
sudo systemctl restart ssh
五、推荐的 Debian 下 SecureCRT 配置总结
✅ 使用 SSH2 + ed25519 密钥
✅ 终端编码 UTF-8
✅ 字体:
- DejaVu Sans Mono
- 或 WenQuanYi Micro Hei Mono
✅ 禁用 root 密码登录
✅ 开启 SSH keepalive(Session Options → SSH2)
如果你需要:
- SecureCRT 破解/授权相关
- 与 Debian + zsh / tmux 的最佳配置
- 和 Windows SecureCRT 同步 session
- 串口 + SSH 混合使用
可以继续问我,我可以按你的具体 Debian 版本(11 / 12)给你更精确的配置。