当前位置:网站首页>Public key \ private SSH avoid password login
Public key \ private SSH avoid password login
2022-07-07 01:42:00 【Full stack programmer webmaster】
Hello everyone , I meet you again , I'm the king of the whole stack
I've seen it before , Never mind , Before using public key management , The filing machine of Tencent virtual machine , It's very hair like , Check the relevant information , Here's a summary :
character a:192.168.7.188 (ubuntu)
character b:192.168.7.17 (centos)
Hope from a land b When , No need to enter password. My original idea was to b The public key of a Of key In the document , This way a Use public key and b The private key Match . The result is just the opposite ,
The actual operation is to a The public key of b Of key In the document .
stay a Generate key on , command
ssh-keygen -t rsa ( The encryption type here is also the public key choice dsa)
The default will be ~/.ssh A pair of keys exist under the folder
We will id_rsa.pub Copy content from to b Mechanical authorized_keys Go on ok 了 , Assuming that the file does not exist, create another
Here is how to use public key and key management server User rights , Like a server Many developers use , When an employee leaves the company , We all need to change password What? , This is troublesome for everyone , With the key , We usually require everyone to use their own public key to log in server, When employees leave , The administrator only needs to delete the public key of the resigned employee .
If it appears Agent admitted failure to sign using the key. function :ssh-add ~/.ssh/id_rsa
Copyright notice : This article is the original article of the blogger , Blog , Do not reprint without permission .
Publisher : Full stack programmer stack length , Reprint please indicate the source :https://javaforall.cn/116905.html Link to the original text :https://javaforall.cn
边栏推荐
- Dark horse notes - create immutable sets and streams
- 【芯片方案设计】脉搏血氧仪
- 移植DAC芯片MCP4725驱动到NUC980
- 【信号与系统】
- THREE. AxesHelper is not a constructor
- AI 从代码中自动生成注释文档
- Right mouse button customization
- New job insights ~ leave the old and welcome the new~
- 百度飞将BMN时序动作定位框架 | 数据准备与训练指南 (上)
- Yunna - work order management system and process, work order management specification
猜你喜欢

JVM 内存模型

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

Baidu flying general BMN timing action positioning framework | data preparation and training guide (Part 1)

Clickhouse fields are grouped and aggregated, and SQL is queried according to the granularity of any time period

AcWing 345. Cattle station solution (nature and multiplication of Floyd)

Gin introduction practice

Typical problems of subnet division and super network construction

2022 Google CTF SEGFAULT LABYRINTH wp
![[advanced C language] 8 written questions of pointer](/img/d4/c9bb2c8c9fd8f54a36e463e3eb2fe0.png)
[advanced C language] 8 written questions of pointer

永久的摇篮
随机推荐
Js逆向——捅了【马蜂窝】的ob混淆与加速乐
JS ES5也可以创建常量?
分享一个通用的so动态库的编译方法
[advanced C language] 8 written questions of pointer
Installation of gazebo & connection with ROS
鼠标右键 自定义
Yunna | work order management measures, how to carry out work order management
ZOJ problem set – 2563 long dominoes [e.g. pressure DP]
云呐-工单管理制度及流程,工单管理规范
IDEA常用的快捷键
uva 1401 dp+Trie
C language instance_ five
Drag to change order
How to manage distributed teams?
LeetCode. 剑指offer 62. 圆圈中最后剩下的数
C language instance_ four
增加 pdf 标题浮窗
Today's question -2022/7/4 modify string reference type variables in lambda body
Share a general compilation method of so dynamic library
LeetCode:1175. 质数排列