当前位置:网站首页>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/
边栏推荐
猜你喜欢
随机推荐
TCP/IP协议(UDP)
QT creator design user interface
L2-001 紧急救援 (25 分)
wangeditor富文本引用、表格使用问题
Error connecting to MySQL database: 2059 - authentication plugin 'caching_ sha2_ The solution of 'password'
PyCharm中无法调用numpy,报错ModuleNotFoundError: No module named ‘numpy‘
[NPUCTF2020]ReadlezPHP
Machine learning notes week02 convolutional neural network
机器学习--人口普查数据分析
AcWing 1298. Solution to Cao Chong's pig raising problem
01 project demand analysis (ordering system)
Solve the problem of installing failed building wheel for pilot
L2-006 树的遍历 (25 分)
数数字游戏
In the era of DFI dividends, can TGP become a new benchmark for future DFI?
[蓝桥杯2017初赛]方格分割
解决安装Failed building wheel for pillow
[Blue Bridge Cup 2017 preliminary] buns make up
Summary of numpy installation problems
天梯赛练习集题解LV1(all)
![[number theory] divisor](/img/ec/036d7e76cc566c08d336444f2898e1.jpg)







