通过SeureCRT创建一个公用的密钥,以后SSH登陆上去不用输入用户名密码
1.Go to "Tools" -> "Create Public Key..." or "Options" > "Global Options"
2.Select "RSA" as key type from the drop down box
3.Set a passphrase to protect your private key
4.Set the key length to 1024
5.SecureCRT will generate the key
6.Select "Open SSH Key format" and point SecureCRT to the location where you want the keys saved. You can also take this opportunity to give the key file a name other than the default name (Identity).
7.SecureCRT may ask if you want to use this as your global Public Key, and you can safely say "yes"
PS: 这里你需要在服务器端解析设置你的public key当中的密钥密文让它生效。
8.At this point you can use the private/public key pair to log on but you need to setup your sessions to do so. You can choose to globally set all sessions to attempt to use the public key by default or just set it for individual sessions.
本文详细介绍了如何使用SecureCRT创建RSA密钥对,实现SSH登录时免密码验证。步骤包括选择密钥类型、设置保护短语、指定密钥长度、保存密钥文件,并在服务器上配置公钥,确保后续会话能自动使用公钥进行身份验证。
1万+

被折叠的 条评论
为什么被折叠?



