美文网首页
Xshell,CRT基于公钥的远程连接

Xshell,CRT基于公钥的远程连接

作者: 尛尛大尹 | 来源:发表于2017-09-11 21:08 被阅读0次

1.xshell基于公钥的远程连接

首先在客户机上生成密钥
(1)工具→新建用户密钥生成向导


Paste_Image.png

(2)选择密钥类型和长度


Paste_Image.png Paste_Image.png
(3)生成密钥,点击 下一步
Paste_Image.png
(4)点击关闭 Paste_Image.png

(5)输入名称和主机IP,然后点击用户身份验证
千万不要点击确认,因为默认是密码登录

Paste_Image.png
(6)更改方法为Public Key
输入用户名,因为用户名不同秘钥也不同
选择用户密钥
如果有密码请输入密钥密码,点击确定
Paste_Image.png
(7)然后,将保存在本地上的公钥文件传到服务器端并且放在.ssh/authorized_keys文件里,如果.ssh下的authorized_keys存在,则追加进去,如果不存在,就创建一个authorized_keys文件,必须是这个文件名哦!!!权限必须是600 Paste_Image.png

(8)点击连接

Paste_Image.png

2.CRT基于公钥的远程连接

首先在客户机上生成密钥
(1)选择tools→Create Public Key...

Paste_Image.png
(2)下一步
Paste_Image.png
(3)选择密钥的类型
Paste_Image.png
(4)输入密钥的口令
Paste_Image.png
(5)选择密钥的长度
Paste_Image.png
(6)选择文件的格式和放置的目录
Paste_Image.png
(7)无所谓
Paste_Image.png
(8)然后这里我用rz传输公约到服务器端
Paste_Image.png
(9)更改公钥的格式
Paste_Image.png
(10)更改连接的方式
Paste_Image.png
(11)用ssh和PublicKey来连接
Paste_Image.png
(12)选择连接时所用的用户名
Paste_Image.png
(13)输入公钥文件
Paste_Image.png

相关文章

网友评论

      本文标题:Xshell,CRT基于公钥的远程连接

      本文链接:https://www.haomeiwen.com/subject/zfefsxtx.html