温馨提示×

怎样在ubuntu配securecrt

小樊
39
2026-09-10 00:12:06
栏目: 智能运维

在 Ubuntu 上使用 SecureCRT 一般有两种场景:

  1. 在 Ubuntu 上安装并运行 SecureCRT(作为客户端)
  2. 配置 Ubuntu,使其可以被 SecureCRT 远程连接(SSH 服务端)

下面分别说明。


一、在 Ubuntu 上安装并使用 SecureCRT

1. 下载 SecureCRT(Linux 版)

SecureCRT 官方提供 Linux 版本(DEB / RPM)。

  • 官网:https://www.vandyke.com/products/securecrt/
  • 选择 Linux → Ubuntu / Debian (64-bit)

下载得到类似:

scrt-9.x.x-xxxx.ubuntu20.x86_64.deb

2. 安装

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

3. 启动

scrt

或:

应用程序菜单 → SecureCRT

4. 基本配置(连接 Linux 服务器)

  • 打开 SecureCRT
  • File → Connect → New Session
  • 协议选 SSH2
  • Hostname:服务器 IP
  • Username:登录用户
  • 端口默认 22

二、Ubuntu 配置为 SecureCRT 可连接的服务器

1. 安装 SSH 服务

sudo apt update
sudo apt install openssh-server

2. 启动并设置开机自启

sudo systemctl enable --now ssh

3. 检查状态

sudo systemctl status ssh

4. 防火墙(如有)

sudo ufw allow 22

5. 在 SecureCRT 中连接

  • 协议:SSH2
  • IP:Ubuntu 的 IP(ip a 查看)
  • 用户名 / 密码(或密钥)

三、使用密钥登录(推荐)

Ubuntu 端

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

SecureCRT 端

  • Session 设置 → SSH2 → Authentication
  • 选择 PublicKey
  • 导入私钥(id_rsa

四、常见问题

连接慢

编辑 /etc/ssh/sshd_config

UseDNS no

然后:

sudo systemctl restart ssh

拒绝连接

  • IP 是否正确
  • ssh 是否运行
  • 防火墙是否放行

如果你是想 “Ubuntu 当客户端连别的机器” 还是 “别的机器用 SecureCRT 连 Ubuntu”,可以告诉我,我可以给更具体的步骤。

0