在Linux下使用SecureCRT的完整指南
一 安装与启动
tar xvf SecureCRT-<版本号>.tar.gz
cd SecureCRT-<版本号>
sudo ./install
安装过程中可按需选择或确认安装目录。完成后可在应用菜单或终端输入SecureCRT启动。二 准备目标Linux的SSH服务
sudo apt-get update
sudo apt-get install openssh-server
sudo systemctl status ssh # 查看状态
sudo systemctl enable --now ssh
sudo dnf install -y openssh-server # 或 yum install -y openssh-server
sudo systemctl status sshd
sudo systemctl enable --now sshd
sudo ss -tlnp | grep :22
以上确保远端可被SSH访问,便于SecureCRT连接。
三 建立与优化连接
~/.ssh/authorized_keys,实现免密登录。lrzsz并在SecureCRT启用相应选项。四 常见故障排查
sshd,且监听22端口(ss -tlnp | grep :22)。sshd配置过旧,可在/etc/ssh/sshd_config中临时补充常见加密套件(示例):Ciphers aes128-ctr,aes192-ctr,aes256-ctr,3des-cbc
修改后重启sshd:sudo systemctl restart sshd(不同发行版命令可能略有差异)。LANG=zh_CN.UTF-8或en_US.UTF-8后重连。五 安全与效率实践
/etc/ssh/sshd_config中设置PasswordAuthentication no并重启sshd)。