SecureCRT与Ubuntu服务器配合使用的完整指南
一 环境准备与网络连通
sudo systemctl status ssh、sudo ufw allow ssh、ip a(或 ifconfig)。上述步骤完成后即可进行 SSH 连接。二 Ubuntu 端 SSH 服务配置
sudo apt update && sudo apt install openssh-serversudo systemctl status sshsudo systemctl start ssh;sudo systemctl enable sshsudo ufw allow ssh(或 sudo ufw allow 22/tcp)/etc/ssh/sshd_config 后重启 sudo systemctl restart ssh)
Port 22(如需变更,同步修改 SecureCRT 的端口)PermitRootLogin yes|noPasswordAuthentication yes|nossh <用户名>@<服务器IP>。三 SecureCRT 端连接与会话设置
四 认证与安全加固
PasswordAuthentication yes 已开启;在 SecureCRT 中保存密码或使用会话保存凭据。~/.ssh/authorized_keyssshd_config 中将 PasswordAuthentication no 并重启 ssh)sshd_config 中按需调整 KexAlgorithms/HostKeyAlgorithms 后重启服务。五 常见问题排查与实用技巧
sshd 监听:sudo systemctl status ssh 或 sudo netstat -tuln | grep sshd/etc/ssh/sshd_config 中补充兼容算法项并重启 sshOptions → Session Options → Terminal → Appearance → Character encoding = UTF-8systemctl status ssh、netstat -tuln | grep sshd 与云安全组规则进行定位。