当前位置:网站首页>公钥\私人 ssh避password登陆
公钥\私人 ssh避password登陆
2022-07-06 17:57:00 【全栈程序员站长】
大家好,又见面了,我是全栈君
相关概念以前见过,决不要注意,使用公共密钥管理之前,腾讯云主机的备案机,非常头发的感觉,查了一下相关资料,这里总结下:
字符a:192.168.7.188 (ubuntu)
字符b:192.168.7.17 (centos)
希望从a登陆b的时候,不须要输入password.我原先的想法是将b的公钥放到a的key文件里,这样让a使用公钥跟b的私钥 进行匹配.结果却恰恰相反,
实际的操作是将a的公钥放到b的key文件中面.
在a上生成密钥,命令
ssh-keygen -t rsa (这里的加密类型类型也公钥选择dsa)
默认会在~/.ssh文件夹以下生存一对密钥
我们将id_rsa.pub中的内容拷贝到b机器的authorized_keys中去就ok了,假设该文件不存在则又一次建一个
以下说下怎样使用公钥和密钥管理server使用者的权限,比方一台server有非常多开发人员使用,在遇到有员工离职的时候,我们都须要更改password什么的,这样对大家来说都听麻烦,有了密钥,我们在平时的时候要求大家都使用自己的公钥来登陆server,在员工离职的时候,管理员仅仅须要删除离职员工的公钥就公钥了.
若出现Agent admitted failure to sign using the key. 运行:ssh-add ~/.ssh/id_rsa
版权声明:本文博主原创文章,博客,未经同意不得转载。
发布者:全栈程序员栈长,转载请注明出处:https://javaforall.cn/116905.html原文链接:https://javaforall.cn
边栏推荐
- 云呐-工单管理制度及流程,工单管理规范
- 405 method not allowed appears when the third party jumps to the website
- Case development of landlord fighting game
- Implementation principle of waitgroup in golang
- Clickhouse fields are grouped and aggregated, and SQL is queried according to the granularity of any time period
- 1123. 最深叶节点的最近公共祖先
- How to prevent overfitting in cross validation
- 从底层结构开始学习FPGA----FIFO IP的定制与测试
- JS reverse -- ob confusion and accelerated music that poked the [hornet's nest]
- NEON优化:性能优化经验总结
猜你喜欢

黑马笔记---异常处理

1123. 最深叶节点的最近公共祖先

LeetCode:1175. Prime permutation

2022 Google CTF SEGFAULT LABYRINTH wp

Asset security issues or constraints on the development of the encryption industry, risk control + compliance has become the key to breaking the platform

Start from the bottom structure to learn the customization and testing of fpga---- FIFO IP

LeetCode:1175. 质数排列

从底层结构开始学习FPGA----FIFO IP的定制与测试

对C语言数组的再认识

shell脚本快速统计项目代码行数
随机推荐
Taro 小程序开启wxml代码压缩
Taro中添加小程序 “lazyCodeLoading“: “requiredComponents“,
Your cache folder contains root-owned files, due to a bug in npm ERR! previous versions of npm which
boot - prometheus-push gateway 使用
[JS] obtain the N days before and after the current time or the n months before and after the current time (hour, minute, second, year, month, day)
LeetCode:1175. Prime permutation
Add the applet "lazycodeloading": "requiredcomponents" in taro,
交叉验证如何防止过拟合
Google released a security update to fix 0 days that have been used in chrome
第三方跳转网站 出现 405 Method Not Allowed
前置机是什么意思?主要作用是什么?与堡垒机有什么区别?
NEON优化:性能优化常见问题QA
Neon Optimization: an optimization case of log10 function
从底层结构开始学习FPGA----FIFO IP的定制与测试
Receive user input, height BMI, BMI detection small business entry case
自旋与sleep的区别
Dynamic planning idea "from getting started to giving up"
Start from the bottom structure to learn the customization and testing of fpga---- FIFO IP
C语言实例_4
Byte P7 professional level explanation: common tools and test methods for interface testing, Freeman