当前位置:网站首页>Password free login of distributed nodes
Password free login of distributed nodes
2022-07-06 11:30:00 【@Little snail】
First step :master node
# Generate a key at the terminal
ssh-keygen -t rsa
cd .ssh/
ls
# Copy the public key file to authorized_keys file
cat ~/.ssh/id_rsa.pub >> ~/.ssh/authorized_keys
ls -l

#authorized_keys File permissions
[[email protected] .ssh]$ chmod 600 ~/.ssh/authorized_keys
# Add the private key to ssh-agent In the cache of
[[email protected] .ssh]$ ssh-add id_dsa
# take authorized_keys File copy to slave01、slave02 node zkpk The root directory of the user
[[email protected] .ssh]$ scp ~/.ssh/authorized_keys [email protected]:~/
[[email protected] .ssh]$ scp ~/.ssh/authorized_keys [email protected]:~/
The second step :slave01 node
First from root The user returns to the normal user zkpk
# Generate a key at the terminal
[[email protected] ~]$ ssh-keygen -t rsa
# take authorized_keys File move to .ssh Catalog
shell [[email protected] ~]$ mv authorized_keys ~/.ssh/
The third step :slave02 node
First from root The user returns to the normal user zkpk
# Generate a key at the terminal
[[email protected] ~]$ ssh-keygen -t rsa
# take authorized_keys File move to .ssh Catalog
shell [[email protected] ~]$ mv authorized_keys ~/.ssh/
边栏推荐
猜你喜欢

小L的试卷

{one week summary} take you into the ocean of JS knowledge

Image recognition - pyteseract TesseractNotFoundError: tesseract is not installed or it‘s not in your path

Deoldify project problem - omp:error 15:initializing libiomp5md dll,but found libiomp5md. dll already initialized.
![[number theory] divisor](/img/ec/036d7e76cc566c08d336444f2898e1.jpg)
[number theory] divisor

Request object and response object analysis

安装numpy问题总结

QT creator specifies dependencies

QT creator runs the Valgrind tool on external applications

Cookie setting three-day secret free login (run tutorial)
随机推荐
L2-001 紧急救援 (25 分)
neo4j安装教程
QT creator design user interface
Software I2C based on Hal Library
Use dapr to shorten software development cycle and improve production efficiency
Deoldify project problem - omp:error 15:initializing libiomp5md dll,but found libiomp5md. dll already initialized.
UDS learning notes on fault codes (0x19 and 0x14 services)
Solution of deleting path variable by mistake
Django running error: error loading mysqldb module solution
Classes in C #
[Bluebridge cup 2020 preliminary] horizontal segmentation
Introduction to the easy copy module
数据库高级学习笔记--SQL语句
ES6 promise object
QT creator custom build process
Image recognition - pyteseract TesseractNotFoundError: tesseract is not installed or it‘s not in your path
Error connecting to MySQL database: 2059 - authentication plugin 'caching_ sha2_ The solution of 'password'
QT creator create button
数数字游戏
02 staff information management after the actual project