温馨提示×

SecureCRT如何适配Ubuntu

小樊
40
2026-08-11 06:54:30
栏目: 智能运维

Ubuntu(Linux)上使用 SecureCRT,主要有三种常见场景,下面按「最推荐 → 次推荐 → 特殊需求」给你说明,并附上安装、配置、常见问题


一、最推荐方案:Windows 用 SecureCRT + Ubuntu 作为被连接端 ✅

SecureCRT 官方对 Linux 的 GUI 支持并不友好,不建议在 Ubuntu 上直接跑 SecureCRT 桌面版。

1️⃣ Ubuntu 端准备(SSH 服务)

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

查看 IP:

ip a

2️⃣ Windows 端 SecureCRT 连接 Ubuntu

  • 协议:SSH2
  • Hostname:Ubuntu IP
  • Port:22
  • Username:Ubuntu 用户名
  • 认证方式:密码 / 公钥

这是最稳定、最通用的方式


二、在 Ubuntu 上直接安装 SecureCRT(不推荐但可行)

1️⃣ 下载 SecureCRT for Linux

官网(需账号):

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

选择:

  • Linux
  • 64-bit
  • .tgz.deb

2️⃣ 安装方式一:.deb(推荐)

sudo dpkg -i securecrt-*.deb
sudo apt -f install   # 修复依赖

3️⃣ 安装方式二:.tgz

tar -zxvf securecrt-*.tgz
cd securecrt/
./SecureCRT

4️⃣ 常见问题(非常重要)

❌ 中文乱码

export LANG=zh_CN.UTF-8
export LC_ALL=zh_CN.UTF-8

或 SecureCRT:

Session Options → Terminal → Appearance → Font

选择支持中文的字体(如 Noto Sans Mono)


❌ 无法启动 / libpng / libtinfo 错误

Ubuntu 22.04+ 常见:

sudo apt install libpng16-16 libtinfo5

❌ Wayland 下显示异常

切换到 X11:

登录界面 → 齿轮 → Ubuntu on Xorg

三、Ubuntu 下的替代方案(比 SecureCRT 更好用)

如果你只是想在 Ubuntu 上 SSH 管理服务器,强烈推荐:

✅ 1. Termius(跨平台)

  • GUI 友好
  • 支持 Windows / Linux / macOS / Android
  • 免费版够用

✅ 2. 原生终端 + OpenSSH(最稳定)

ssh user@ip

配合:

  • tmux
  • zsh
  • oh-my-zsh

✅ 3. 其他 SSH 工具对比

工具 是否推荐
SecureCRT (Linux) ⚠️ 勉强
Termius ✅✅
MobaXterm ❌ Linux 不支持
Windows SecureCRT ✅✅✅

四、如果你一定要“SecureCRT + Ubuntu”的最佳实践 ✅

Windows 跑 SecureCRT
✅ Ubuntu 只做 SSH Server
✅ 使用密钥认证
✅ 禁用 root 登录

sudo nano /etc/ssh/sshd_config
PermitRootLogin no
PasswordAuthentication no
PubkeyAuthentication yes

五、我可以继续帮你做的事

你可以直接告诉我:

  • ✅ Ubuntu 版本(20.04 / 22.04 / 24.04)
  • ✅ 是 本地 Ubuntu 还是 服务器
  • ✅ 是否需要 串口(Serial)
  • ✅ 是否需要 SecureCRT 脚本 / 自动登录

我可以给你 精确到版本的配置方案

0