当前位置:网站首页>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/
边栏推荐
- Introduction and use of automatic machine learning framework (flaml, H2O)
- [number theory] divisor
- Learning question 1:127.0.0.1 refused our visit
- 常用正则表达式整理
- QT creator support platform
- 快来走进JVM吧
- [蓝桥杯2017初赛]包子凑数
- Solution of deleting path variable by mistake
- Unable to call numpy in pycharm, with an error modulenotfounderror: no module named 'numpy‘
- 保姆级出题教程
猜你喜欢

How to configure flymcu (STM32 serial port download software) is shown in super detail

One click extraction of tables in PDF

Dotnet replaces asp Net core's underlying communication is the IPC Library of named pipes

基于apache-jena的知识问答

QT creator test

QT creator custom build process

AcWing 242. A simple integer problem (tree array + difference)

QT creator support platform

自动机器学习框架介绍与使用(flaml、h2o)

机器学习笔记-Week02-卷积神经网络
随机推荐
QT creator uses Valgrind code analysis tool
Attention apply personal understanding to images
Are you monitored by the company for sending resumes and logging in to job search websites? Deeply convinced that the product of "behavior awareness system ba" has not been retrieved on the official w
Software I2C based on Hal Library
AcWing 1294.樱花 题解
express框架详解
About string immutability
PHP - whether the setting error displays -php xxx When PHP executes, there is no code exception prompt
{one week summary} take you into the ocean of JS knowledge
Double to int precision loss
L2-001 emergency rescue (25 points)
Vs2019 first MFC Application
Case analysis of data inconsistency caused by Pt OSC table change
[download app for free]ineukernel OCR image data recognition and acquisition principle and product application
AcWing 179.阶乘分解 题解
L2-007 家庭房产 (25 分)
02-项目实战之后台员工信息管理
Integration test practice (1) theoretical basis
QT creator shape
Vs2019 desktop app quick start