当前位置:网站首页>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/
边栏推荐
- Database advanced learning notes -- SQL statement
- Deoldify项目问题——OMP:Error#15:Initializing libiomp5md.dll,but found libiomp5md.dll already initialized.
- QT creator custom build process
- Classes in C #
- 安装numpy问题总结
- 数数字游戏
- Record a problem of raspberry pie DNS resolution failure
- 机器学习--人口普查数据分析
- QT creator support platform
- Vs2019 use wizard to generate an MFC Application
猜你喜欢
QT creator design user interface
UDS learning notes on fault codes (0x19 and 0x14 services)
vs2019 桌面程序快速入门
图像识别问题 — pytesseract.TesseractNotFoundError: tesseract is not installed or it‘s not in your path
vs2019 使用向导生成一个MFC应用程序
wangeditor富文本引用、表格使用问题
保姆级出题教程
Request object and response object analysis
软件测试与质量学习笔记3--白盒测试
Neo4j installation tutorial
随机推荐
Vs2019 use wizard to generate an MFC Application
数据库高级学习笔记--SQL语句
neo4j安装教程
Codeforces Round #771 (Div. 2)
PHP - whether the setting error displays -php xxx When PHP executes, there is no code exception prompt
Rhcsa certification exam exercise (configured on the first host)
Knowledge Q & A based on Apache Jena
Codeforces Round #771 (Div. 2)
nodejs 详解
[BSidesCF_2020]Had_a_bad_day
搞笑漫画:程序员的逻辑
What does BSP mean
Cookie setting three-day secret free login (run tutorial)
yarn安装与使用
01 project demand analysis (ordering system)
[Blue Bridge Cup 2017 preliminary] grid division
数数字游戏
QT creator design user interface
Learning question 1:127.0.0.1 refused our visit
{one week summary} take you into the ocean of JS knowledge