要在SecureCRT中配置SSH密钥认证,请按照以下步骤操作:
Options
(选项)。Session Options
(会话选项)。SSH
-> Key Exchange
(密钥交换)。Key Exchange
设置页面中,选择 Generate new key pair
(生成新密钥对)。OK
生成密钥对。Identity.pub
)上传到远程服务器的 ~/.ssh/authorized_keys
文件中。/etc/ssh/sshd_config
:vim /etc/ssh/sshd_config
PubkeyAuthentication yes
AuthorizedKeysFile .ssh/authorized_keys
RSAAuthentication yes
PasswordAuthentication no
systemctl restart sshd
Session
(会话)。New Session
(新建会话)。Session Options
对话框中,选择 SSH
协议。Key Exchange
设置页面中,选择 Use private key file
(使用私钥文件)。Identity
)。OK
保存会话配置。完成以上步骤后,您应该能够通过SSH密钥认证方式安全地连接到远程服务器。如果遇到连接问题,请检查服务器端的SSH配置和密钥文件权限设置。