当前位置:网站首页>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/
边栏推荐
- Use dapr to shorten software development cycle and improve production efficiency
- UDS learning notes on fault codes (0x19 and 0x14 services)
- QT creator runs the Valgrind tool on external applications
- express框架详解
- Punctual atom stm32f103zet6 download serial port pin
- 机器学习--人口普查数据分析
- What does BSP mean
- vs2019 第一个MFC应用程序
- 2019腾讯暑期实习生正式笔试
- AcWing 179. Factorial decomposition problem solution
猜你喜欢

wangeditor富文本引用、表格使用问题

PHP - whether the setting error displays -php xxx When PHP executes, there is no code exception prompt

图片上色项目 —— Deoldify

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

Learn winpwn (2) -- GS protection from scratch

About string immutability

Vs2019 desktop app quick start

解决安装Failed building wheel for pillow

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

Software testing and quality learning notes 3 -- white box testing
随机推荐
02-项目实战之后台员工信息管理
How to configure flymcu (STM32 serial port download software) is shown in super detail
Codeforces Round #771 (Div. 2)
ES6 Promise 对象
[Blue Bridge Cup 2017 preliminary] grid division
L2-004 这是二叉搜索树吗? (25 分)
vs2019 桌面程序快速入门
AI benchmark V5 ranking
Niuke novice monthly race 40
TCP/IP协议(UDP)
vs2019 第一个MFC应用程序
02 staff information management after the actual project
牛客Novice月赛40
UDS learning notes on fault codes (0x19 and 0x14 services)
Reading BMP file with C language
Codeforces Round #771 (Div. 2)
MySQL and C language connection (vs2019 version)
01项目需求分析 (点餐系统)
TypeScript
一键提取pdf中的表格