SecureCRT基于秘钥来登录
2015-09-30 00:00
176 查看
在windows端生成密钥,客户端连接是使用SecureCRT
工具 –>创建公钥
生成密钥后,把公钥文件复制到服务器端对应用户家目录的.ssh目录下,文件名字为authorized_keys,记住此权限给其为400。
把Identity.pub公钥文件复制到服务器端
若root家目录下没有.ssh目录,在服务器端root家目录下新建.ssh目录
#mkdir .ssh
#cat Identity.pub >> .ssh/authorized_keys
#chmod –R 400 .ssh
通过客户端使用密钥的方式进行登陆
Public-key authentication with the server for user sw failed. Please verify username and public/private key pair.
此时selinux为Enforcing,设置setenforce 0
#setenforce 0
再重新连接时,ok了
此时使用密钥登陆就ok了
工具 –>创建公钥
生成密钥后,把公钥文件复制到服务器端对应用户家目录的.ssh目录下,文件名字为authorized_keys,记住此权限给其为400。
把Identity.pub公钥文件复制到服务器端
若root家目录下没有.ssh目录,在服务器端root家目录下新建.ssh目录
#mkdir .ssh
#cat Identity.pub >> .ssh/authorized_keys
#chmod –R 400 .ssh
通过客户端使用密钥的方式进行登陆
Public-key authentication with the server for user sw failed. Please verify username and public/private key pair.
此时selinux为Enforcing,设置setenforce 0
#setenforce 0
再重新连接时,ok了
此时使用密钥登陆就ok了
相关文章推荐
- 新的开始
- Markdown的各种语法
- 通达OA,为企业撑起一片"蓝天"
- iOS应用程序一般的五个状态(app的活动监测)
- openURL方法
- 管理状态栏通过UIViewController管理
- 通过UIApplication管理状态栏
- iOS设置联网指示器的可见性
- iOS applicationIconBadgeNumber(后台app红色角标)
- 车辆违章查询接口,获取支持城市参数接口示例
- sublime 和 hbuilder对比
- 2015年9月30
- 2015年9月28
- Cron 表达式详解和案例
- linux mysql
- 二维码纠错率的问题
- log4j2
- IOS 去除 tableView 中 headerView 吸附头部,不整体滚动
- windows phone开发第一步:搭建软件开发环境
- angular之显示注入声明