温馨提示×

如何配置Debian的SecureCRT

小樊
43
2026-07-30 07:15:20
栏目: 智能运维

下面分两部分说明:
1️⃣ 在 Debian 上安装 SecureCRT
2️⃣ 配置 SecureCRT 连接 Debian(或 Debian 作为客户端)


一、在 Debian 上安装 SecureCRT

SecureCRT 官方支持 Linux(含 Debian),但它是商业软件

1. 下载 SecureCRT(Linux 版)

官网(需账号):

https://www.vandyke.com/products/securecrt/

选择:

  • Linux
  • 64-bit .deb(Debian/Ubuntu)

下载后得到类似:

SecureCRT-9.x.xx.xxxx-debian9.amd64.deb

2. 安装依赖(如有需要)

sudo apt update
sudo apt install -y libssl-dev libx11-6 libxrender1 libxtst6

3. 安装 SecureCRT

sudo dpkg -i SecureCRT-*.deb

如果报依赖错误:

sudo apt -f install

4. 启动 SecureCRT

securecrt

或:

Applications → Internet → SecureCRT

二、配置 SecureCRT 连接 Debian(SSH)

1. 确保 Debian 已开启 SSH

sudo apt install openssh-server
sudo systemctl enable ssh
sudo systemctl start ssh

检查:

systemctl status ssh

2. 在 SecureCRT 中新建会话

步骤:

  1. File → Connect → New Session
  2. 选择 Protocol:SSH2
  3. 填写:
    • Hostname:Debian IP(如 192.168.1.100
    • Port:22
    • Username:你的 Debian 用户
  4. Authentication
    • ✅ Password(简单)
    • ✅ PublicKey(推荐)

三、配置 SSH 密钥登录(推荐)

1. 在 Debian 生成密钥

ssh-keygen -t rsa -b 4096

2. 复制公钥

cat ~/.ssh/id_rsa.pub >> ~/.ssh/authorized_keys
chmod 600 ~/.ssh/authorized_keys

3. SecureCRT 导入私钥

  1. SecureCRT → Tools → Manage Agent Keys
  2. 导入:
    ~/.ssh/id_rsa
    
  3. 会话属性 → SSH2 → Authentication → PublicKey

四、常见配置优化

1. 中文不乱码

Session Options → Terminal → Appearance

  • Font:选择支持中文的字体(如 Noto Sans CJK)
  • Character encoding:UTF-8

2. 解决 vim / top 显示异常

  • Terminal type:Linuxxterm-256color

3. 自动登录

  • Session Options → Login Actions
  • 设置自动用户名 / 密码(不推荐生产环境)

五、常见问题

❌ SecureCRT 打不开

securecrt: error while loading shared libraries

解决:

sudo apt install libssl1.1

❌ 连接被拒绝

  • Debian 防火墙:
sudo ufw allow 22

六、是否需要我帮你?

你可以告诉我:

  • ✅ Debian 版本(11 / 12)
  • ✅ 是 桌面版还是服务器版
  • ✅ 想用 密码还是密钥登录
  • ✅ 是否中文环境

我可以给你一步一步精确命令版配置方案

0