温馨提示×

怎样在debian配置securecrt

小樊
40
2026-10-22 07:07:37
栏目: 智能运维

你这里的“配置 SecureCRT”通常是指 在 Debian 上安装并配置 SecureCRT 客户端,用来连接 Linux/网络设备。下面分情况说明。


一、在 Debian 上安装 SecureCRT

SecureCRT 官方提供 Linux 版本(deb 包)。

1. 下载 SecureCRT

去官网: https://www.vandyke.com/products/securecrt/

选择:

  • Linux
  • Debian / Ubuntu (64-bit)
  • 下载 .deb 文件(如 scrt-9.x.x-xxxx.amd64.deb)

2. 安装依赖

sudo apt update
sudo apt install -y libssl1.1 libpam0g

新版本 Debian 12 可能需要 libssl3,按提示安装即可

3. 安装 deb 包

sudo dpkg -i scrt-*.deb
sudo apt -f install

4. 启动

scrt

或菜单搜索 SecureCRT


二、SecureCRT 基本配置(常用)

1. 新建会话(连接 Debian / 服务器)

  1. File → Connect → New Session
  2. Protocol:SSH2
  3. Hostname:目标 IP
  4. Port:22
  5. Username:你的用户名
  6. 保存会话

2. 字体和编码(很重要)

避免中文乱码:

  • Options → Session Options
  • Terminal → Appearance
    • Font:等宽字体(如 Monospace)
  • Terminal → Translation
    • Remote character set:UTF-8

3. 密钥登录(推荐)

生成密钥

  • Tools → Create Public Key
  • 类型:RSA 或 ED25519
  • 保存为 OpenSSH 格式

上传公钥到服务器

mkdir -p ~/.ssh
cat id_pub.pub >> ~/.ssh/authorized_keys
chmod 600 ~/.ssh/authorized_keys

SecureCRT 使用密钥

  • Session Options → SSH2
  • Authentication → PublicKey
  • 选择私钥文件

三、在 Debian 上让 SecureCRT 更好用

1. 鼠标复制粘贴

  • Terminal → Mouse
  • 勾选:
    • Copy on select
    • Paste on right-click

2. 自动登录

Session Options → Login Actions 可配置自动输入密码或 sudo

3. 多标签

  • View → Tab Bar
  • Ctrl + T 新建标签

四、常见问题

1. 无法启动

scrt: error while loading shared libraries

解决:

sudo apt -f install

2. 中文乱码

确认:

  • Debian 系统语言是 UTF-8
  • SecureCRT 编码是 UTF-8

3. 连接慢

  • SSH2 → 取消 GSSAPI

如果你是指:

  • 在 Debian 上用 SecureCRT 连 Windows
  • 用 SecureCRT 管理多台 Debian 服务器
  • SecureCRT 脚本 / 自动化

可以告诉我具体需求,我可以给你更针对性的配置方案。

0 踩