要在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配置和密鑰文件權限設置。