

新闻资讯
技术学院本文将指导您如何在SecureCRT中配置SSH密钥认证,实现更安全的远程服务器连接。
一、生成SSH密钥对
二、上传公钥到服务器
~/.ssh目录下(如果没
有该目录,请创建)。 确保文件使用ASCII格式。~/.ssh目录,创建authorized_keys文件(若不存在),并将Identity.pub文件内容追加到authorized_keys中。chmod 700 ~/.ssh chmod 644 ~/.ssh/authorized_keys
/etc/ssh/sshd_config,确保以下设置正确:PermitRootLogin no PubkeyAuthentication yes AuthorizedKeysFile .ssh/authorized_keys RSAAuthentication yes PasswordAuthentication no
/etc/init.d/ssh restart #(根据你的系统,命令可能略有不同,例如systemctl restart ssh)
三、在SecureCRT中配置SSH密钥认证
现在,您可以使用SSH密钥认证连接到服务器了。 登录时,如有必要,请输入您之前设置的通行短语。