当前位置:网站首页>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
边栏推荐
猜你喜欢
Instructions for using the domain analysis tool bloodhound
JVM 内存模型
Wood extraction in Halcon
Your cache folder contains root-owned files, due to a bug in npm ERR! previous versions of npm which
爬虫实战(六):爬笔趣阁小说
Baidu flying general BMN timing action positioning framework | data preparation and training guide (Part 2)
AI 从代码中自动生成注释文档
【C语言进阶篇】指针的8道笔试题
AcWing 345. Cattle station solution (nature and multiplication of Floyd)
JS reverse -- ob confusion and accelerated music that poked the [hornet's nest]
随机推荐
字符串转成日期对象
mysqlbackup 还原特定的表
Machine learning: the difference between random gradient descent (SGD) and gradient descent (GD) and code implementation.
Add the applet "lazycodeloading": "requiredcomponents" in taro,
交叉验证如何防止过拟合
AcWing 1148. 秘密的牛奶运输 题解(最小生成树)
2022 Google CTF segfault Labyrinth WP
Use nodejs to determine which projects are packaged + released
使用nodejs完成判断哪些项目打包+发版
Can't you understand the code of linked list in C language? An article allows you to grasp the secondary pointer and deeply understand the various forms of parameter passing in the function parameter
AcWing 361. Sightseeing cow problem solution (SPFA seeking positive ring)
Telnet,SSH1,SSH2,Telnet/SSL,Rlogin,Serial,TAPI,RAW
Dark horse notes - create immutable sets and streams
Yunna | work order management measures, how to carry out work order management
Spark TPCDS Data Gen
hdu 4661 Message Passing(木DP&组合数学)
AcWing 1140. Shortest network (minimum spanning tree)
Google released a security update to fix 0 days that have been used in chrome
THREE. AxesHelper is not a constructor
移植DAC芯片MCP4725驱动到NUC980