当前位置:网站首页>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/
边栏推荐
- Punctual atom stm32f103zet6 download serial port pin
- 图片上色项目 —— Deoldify
- 解决安装Failed building wheel for pillow
- How to set up voice recognition on the computer with shortcut keys
- yarn安装与使用
- Did you forget to register or load this tag
- [蓝桥杯2020初赛] 平面切分
- In the era of DFI dividends, can TGP become a new benchmark for future DFI?
- ES6 let and const commands
- Machine learning notes week02 convolutional neural network
猜你喜欢
In the era of DFI dividends, can TGP become a new benchmark for future DFI?
Why can't I use the @test annotation after introducing JUnit
UDS learning notes on fault codes (0x19 and 0x14 services)
About string immutability
Summary of numpy installation problems
Did you forget to register or load this tag
{one week summary} take you into the ocean of JS knowledge
QT creator support platform
Learn winpwn (2) -- GS protection from scratch
Unable to call numpy in pycharm, with an error modulenotfounderror: no module named 'numpy‘
随机推荐
Knowledge Q & A based on Apache Jena
L2-001 emergency rescue (25 points)
报错解决 —— io.UnsupportedOperation: can‘t do nonzero end-relative seeks
Ansible practical series I_ introduction
{one week summary} take you into the ocean of JS knowledge
Learn winpwn (2) -- GS protection from scratch
QT creator design user interface
Machine learning -- census data analysis
When using lambda to pass parameters in a loop, the parameters are always the same value
error C4996: ‘strcpy‘: This function or variable may be unsafe. Consider using strcpy_s instead
JDBC principle
Julia 1.6 1.7 common problem solving
Install mongdb tutorial and redis tutorial under Windows
Codeforces Round #771 (Div. 2)
Learn winpwn (3) -- sEH from scratch
Valentine's Day flirting with girls to force a small way, one can learn
人脸识别 face_recognition
vs2019 使用向导生成一个MFC应用程序
Tcp/ip protocol (UDP)
Dotnet replaces asp Net core's underlying communication is the IPC Library of named pipes