当前位置:网站首页>Connexion sans mot de passe du noeud distribué
Connexion sans mot de passe du noeud distribué
2022-07-06 11:30:00 【Escargot】
Première étape:masterNoeud
#Générer une clé au terminal
ssh-keygen -t rsa
cd .ssh/
ls
#Copier le fichier à clé publiqueauthorized_keysDocumentation
cat ~/.ssh/id_rsa.pub >> ~/.ssh/authorized_keys
ls -l

#authorized_keysPermissions pour les fichiers
[[email protected] .ssh]$ chmod 600 ~/.ssh/authorized_keys
#Ajouter une clé privée à ssh-agent Dans le cache de
[[email protected]r .ssh]$ ssh-add id_dsa
# Oui.authorized_keysCopie du fichier àslave01、slave02NoeudzkpkRépertoire racine de l'utilisateur
[[email protected] .ssh]$ scp ~/.ssh/authorized_keys [email protected]:~/
[[email protected] .ssh]$ scp ~/.ssh/authorized_keys [email protected]:~/
Deuxième étape:slave01Noeud
Commencez parrootRetour de l'utilisateur à l'utilisateur normalzkpk
#Générer une clé au terminal
[[email protected] ~]$ ssh-keygen -t rsa
#Oui.authorized_keysFichier déplacé vers.sshTable des matières
shell [[email protected] ~]$ mv authorized_keys ~/.ssh/
Troisième étape:slave02Noeud
Commencez parrootRetour de l'utilisateur à l'utilisateur normalzkpk
#Générer une clé au terminal
[[email protected] ~]$ ssh-keygen -t rsa
#Oui.authorized_keysFichier déplacé vers.sshTable des matières
shell [[email protected] ~]$ mv authorized_keys ~/.ssh/
边栏推荐
- Niuke novice monthly race 40
- express框架详解
- What does BSP mean
- Deoldify project problem - omp:error 15:initializing libiomp5md dll,but found libiomp5md. dll already initialized.
- JDBC principle
- Reading BMP file with C language
- 引入了junit为什么还是用不了@Test注解
- Case analysis of data inconsistency caused by Pt OSC table change
- Deoldify项目问题——OMP:Error#15:Initializing libiomp5md.dll,but found libiomp5md.dll already initialized.
- QT creator shape
猜你喜欢

Machine learning -- census data analysis

Neo4j installation tutorial

学习问题1:127.0.0.1拒绝了我们的访问

Learn winpwn (3) -- sEH from scratch

Software testing and quality learning notes 3 -- white box testing

MySQL and C language connection (vs2019 version)

基于apache-jena的知识问答

Error connecting to MySQL database: 2059 - authentication plugin 'caching_ sha2_ The solution of 'password'

Case analysis of data inconsistency caused by Pt OSC table change

QT creator specifies dependencies
随机推荐
[BSidesCF_2020]Had_a_bad_day
Number game
Library function -- (continuous update)
Codeforces Round #771 (Div. 2)
学习问题1:127.0.0.1拒绝了我们的访问
Why can't I use the @test annotation after introducing JUnit
One click extraction of tables in PDF
AcWing 1294. Cherry Blossom explanation
PyCharm中无法调用numpy,报错ModuleNotFoundError: No module named ‘numpy‘
[AGC009D]Uninity
PHP - whether the setting error displays -php xxx When PHP executes, there is no code exception prompt
自动机器学习框架介绍与使用(flaml、h2o)
Error connecting to MySQL database: 2059 - authentication plugin 'caching_ sha2_ The solution of 'password'
QT creator uses Valgrind code analysis tool
AcWing 179. Factorial decomposition problem solution
Ansible practical series I_ introduction
QT creator support platform
ES6 promise object
Request object and response object analysis
QT creator specify editor settings