博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
Mac-配置SecureCRT
阅读量:4626 次
发布时间:2019-06-09

本文共 736 字,大约阅读时间需要 2 分钟。

 

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 22 ServerKeyBits 10243 PermitRootLogin no #禁止root登录而已,与本文无关,加上安全些4 #以下三行没什么要改的,把默认的#注释去掉就行了5 RSAAuthentication yes6 PubkeyAuthentication yes7 AuthorizedKeysFile .ssh/authorized_keys8 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. 输入第五步记录的路径

 

转载于:https://www.cnblogs.com/SapphireCastle/p/6395247.html

你可能感兴趣的文章
SpringBoot------ActiveMQ安装
查看>>
详细了解 int? 类型
查看>>
字符串匹配 ?kmp : hash
查看>>
mongod.service: control process exited, code=exited status=1
查看>>
c# 发送邮件、附件 分类: C# 2014-12-...
查看>>
对360来说,江湖上再无“搜狗”这个传说
查看>>
composer
查看>>
OpenCV特征点检测——ORB特征
查看>>
ASP.NET性能优化之构建自定义文件缓存
查看>>
apicloud UISearchBar 使用方法
查看>>
【spring+websocket的使用】
查看>>
mongo二维数组操作
查看>>
localStorage之本地储存
查看>>
Archlinux 交换左Ctrl和Cap键
查看>>
#openstack故障处理汇总
查看>>
搜索旋转排序数组 II
查看>>
20、docker swarm
查看>>
psp工具软件前景与范围文档
查看>>
day06-三元表达式
查看>>
C# DateTime.Now详细用法
查看>>