温馨提示×

Ubuntu下怎么用SecureCRT

小樊
48
2026-07-26 18:55:31
栏目: 智能运维

Ubuntu 下使用 SecureCRT,一般有两种常见场景:
1️⃣ Ubuntu 作为客户端,用 SecureCRT 连接远程服务器
2️⃣ Ubuntu 作为服务器,被 SecureCRT 连接

下面分别说明,并重点讲 Ubuntu 上安装和使用 SecureCRT 的方法


一、在 Ubuntu 上安装 SecureCRT(作为客户端)

1. 下载 SecureCRT(Linux 版)

官网(需账号):

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

选择:

  • Linux
  • 对应架构(一般是 x86_64)
  • 格式:.tar.gz.deb

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

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

3. 安装方式二:.tar.gz 解压

tar -zxvf scrt-*.tar.gz
cd scrt-*/
./SecureCRT

如需全局使用:

sudo cp -r scrt-* /opt/SecureCRT
sudo ln -s /opt/SecureCRT/SecureCRT /usr/local/bin/securecrt

4. 启动 SecureCRT

securecrt

或:

  • 应用菜单 → 搜索 SecureCRT

二、用 SecureCRT 连接服务器(SSH)

1. 新建连接

File → Connect → New Session

2. 基本配置

  • Protocol:SSH2
  • Hostname:服务器 IP
  • Port:22(默认)
  • Username:服务器用户名

3. 认证方式

✅ 密码登录

直接输入密码即可

✅ 密钥登录(推荐)

  1. ssh-keygen 生成密钥:
ssh-keygen -t rsa
  1. 上传公钥到服务器:
ssh-copy-id user@server_ip
  1. SecureCRT 使用私钥:
Session Options → SSH2 → PublicKey → Use identity file

三、Ubuntu 作为服务器,被 SecureCRT 连接

1. 安装 SSH 服务

sudo apt update
sudo apt install openssh-server

2. 启动 SSH

sudo systemctl enable ssh
sudo systemctl start ssh

3. 查看 IP

ip a

在 SecureCRT 中:

  • Hostname = Ubuntu 的 IP
  • Username = Ubuntu 用户名

四、中文乱码问题(常见问题)

解决方法

Session Options → Terminal → Appearance
  • Font:选择支持中文的字体(如 Noto Sans Mono CJK)
  • Encoding:UTF-8

五、常见问题

❌ SecureCRT 启动报错

sudo apt install libssl1.1 libpng16-16

❌ 无法连接

  • 检查:
sudo ufw status
sudo ufw allow 22

六、替代方案(免费)

如果你只是 SSH 管理服务器,也可以考虑:

  • Termius
  • Remmina
  • OpenSSH + Terminal

如果你愿意,可以告诉我:

  • ✅ Ubuntu 版本(20.04 / 22.04 / 24.04)
  • ✅ 是 本地 Ubuntu 装 SecureCRT 还是 远程连 Ubuntu
  • ✅ 是否需要 密钥 / 跳板机 / 串口

我可以给你更精确的配置步骤。

0