当前位置:网站首页>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/
边栏推荐
- QT creator create button
- Windows下安装MongDB教程、Redis教程
- [Bluebridge cup 2020 preliminary] horizontal segmentation
- UDS learning notes on fault codes (0x19 and 0x14 services)
- [BSidesCF_2020]Had_a_bad_day
- QT creator specify editor settings
- In the era of DFI dividends, can TGP become a new benchmark for future DFI?
- 01 project demand analysis (ordering system)
- [Blue Bridge Cup 2017 preliminary] grid division
- Cookie setting three-day secret free login (run tutorial)
猜你喜欢

Pytorch基础

Request object and response object analysis

Why can't I use the @test annotation after introducing JUnit

小L的试卷

MySQL and C language connection (vs2019 version)
![[number theory] divisor](/img/ec/036d7e76cc566c08d336444f2898e1.jpg)
[number theory] divisor

In the era of DFI dividends, can TGP become a new benchmark for future DFI?

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

error C4996: ‘strcpy‘: This function or variable may be unsafe. Consider using strcpy_ s instead

Windows下安装MongDB教程、Redis教程
随机推荐
使用lambda在循环中传参时,参数总为同一个值
Image recognition - pyteseract TesseractNotFoundError: tesseract is not installed or it‘s not in your path
SQL时间注入
Base de données Advanced Learning Notes - - SQL statements
QT creator specifies dependencies
AcWing 1294. Cherry Blossom explanation
Project practice - background employee information management (add, delete, modify, check, login and exit)
QT creator design user interface
QT creator uses Valgrind code analysis tool
JDBC principle
Ansible practical series I_ introduction
天梯赛练习集题解LV1(all)
Learn winpwn (3) -- sEH from scratch
In the era of DFI dividends, can TGP become a new benchmark for future DFI?
[Bluebridge cup 2021 preliminary] weight weighing
AcWing 179.阶乘分解 题解
Why can't STM32 download the program
常用正则表达式整理
Valentine's Day flirting with girls to force a small way, one can learn
Dotnet replaces asp Net core's underlying communication is the IPC Library of named pipes