首页 > 系统服务 > 详细

Mac-配置SecureCRT

时间:2017-02-13 21:27:36      阅读:255      评论:0      收藏:0      [点我收藏+]

 

1. Tools - Create Public Key - 

技术分享

2. Select Key Type

技术分享

技术分享

3. Create Passphrase

技术分享

4.Input  Key Length

技术分享

5. Generate Passphrase

技术分享

技术分享

 

 

 

 

 

 

服务器端

1. Configure  server‘s  ssh

$ vi /etc/ssh/sshd_config

1 Protocol 2
2 ServerKeyBits 1024
3 PermitRootLogin no #禁止root登录而已,与本文无关,加上安全些
4 #以下三行没什么要改的,把默认的#注释去掉就行了
5 RSAAuthentication yes
6 PubkeyAuthentication yes
7 AuthorizedKeysFile .ssh/authorized_keys
8 PasswordAuthentication no //初次试验的时候最好用yes,否则配置错误的话重启sshd后你就悲剧了
9 PermitEmptyPasswords no

2. Convert SecureCRT‘s public key to OPENSSH key

$ rz #选择第五步生成的identity.pub
$ ssh-keygen -i -f Identity.pub >> /root/.ssh/authorized_keys   #生成服务端openssh的key
$ /etc/init.d/sshd restart    #重启服务

 

6. Choose public key

 技术分享

技术分享

 

7. 输入第五步记录的路径

技术分享

 

Mac-配置SecureCRT

原文:http://www.cnblogs.com/SapphireCastle/p/6395247.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!