温馨提示×

linux securecrt怎么配置

小樊
48
2026-10-03 17:20:55
栏目: 智能运维

下面按**“在 Linux 上安装 + 使用 SecureCRT 进行配置”**来说明,适用于大多数发行版(Ubuntu / CentOS / Rocky / Debian 等)。


一、Linux 上安装 SecureCRT

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

1. 下载

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

选择对应版本:

  • Ubuntu / Debian → .deb
  • CentOS / Rocky / RHEL → .rpm

2. 安装

Ubuntu / Debian

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

CentOS / Rocky

sudo rpm -ivh scrt-*.rpm

安装完成后:

securecrt

或菜单中搜索 SecureCRT


二、SecureCRT 基本配置(重点)

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

  1. File → Connect → New Session
  2. 选择协议:
    • ✅ SSH2(最常用)
  3. Hostname:服务器 IP
  4. Port:22
  5. Username:登录用户名

2. 认证方式配置

密码登录

  • 在 Authentication 中勾选 Password

密钥登录(推荐)

  1. 本地生成密钥(Linux 终端):
ssh-keygen -t rsa -b 4096
  1. 将公钥上传到服务器:
ssh-copy-id user@ip
  1. SecureCRT:
    • Authentication → PublicKey
    • 选择私钥文件(~/.ssh/id_rsa)

3. 终端外观配置(很重要)

Session Options → Terminal → Appearance

建议设置:

  • Font:Consolas / Monaco
  • Encoding:UTF-8
  • Color scheme:Linux / Solarized

4. 解决中文乱码

Terminal → Emulation

  • Terminal:Linux
  • Encoding:UTF-8

5. 多窗口 / 标签页

  • 右键 Session → Connect in Tab
  • 或使用 Ctrl + T

三、常用高效配置

1. 自动登录

Session Options → Login Actions 可设置自动输入密码或命令

2. 日志记录

Session Options → Log File

  • 勾选“Start log upon connect”
  • 路径如:
/home/user/logs/%S_%Y-%M-%D.log

3. 记住密码(不推荐生产环境)

Session Options → SSH2 → Authentication 勾选 Save password


四、常见问题

❌ 无法启动

securecrt: error while loading shared libraries

解决:

sudo apt install libssl1.1

❌ 连接慢

  • 关闭 DNS 反解(服务器 /etc/ssh/sshd_config):
UseDNS no

五、总结

Linux 下 SecureCRT 配置核心就是: ✅ 安装
✅ SSH2 会话
✅ UTF-8
✅ 密钥登录
✅ 日志 & 外观

如果你告诉我:

  • 使用的 Linux 发行版
  • 是 服务器 / 本地桌面
  • 是否 密钥登录

我可以给你一份针对性配置步骤或截图级说明。

0 踩