当前位置:网站首页>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/
边栏推荐
- 数据库高级学习笔记--SQL语句
- Face recognition_ recognition
- Knowledge Q & A based on Apache Jena
- Pytorch基础
- Nanny level problem setting tutorial
- QT creator uses Valgrind code analysis tool
- QT creator test
- Case analysis of data inconsistency caused by Pt OSC table change
- Why can't I use the @test annotation after introducing JUnit
- 学习问题1:127.0.0.1拒绝了我们的访问
猜你喜欢
MySQL and C language connection (vs2019 version)
解决安装Failed building wheel for pillow
引入了junit为什么还是用不了@Test注解
About string immutability
Software testing and quality learning notes 3 -- white box testing
When you open the browser, you will also open mango TV, Tiktok and other websites outside the home page
{one week summary} take you into the ocean of JS knowledge
AcWing 1298. Solution to Cao Chong's pig raising problem
Install mongdb tutorial and redis tutorial under Windows
Machine learning -- census data analysis
随机推荐
MySQL and C language connection (vs2019 version)
打开浏览器的同时会在主页外同时打开芒果TV,抖音等网站
double转int精度丢失问题
Solution to the practice set of ladder race LV1 (all)
02-项目实战之后台员工信息管理
AcWing 1294. Cherry Blossom explanation
L2-007 家庭房产 (25 分)
基于apache-jena的知识问答
Codeforces Round #753 (Div. 3)
人脸识别 face_recognition
How to set up voice recognition on the computer with shortcut keys
软件测试-面试题分享
库函数--(持续更新)
yarn安装与使用
01 project demand analysis (ordering system)
{一周总结}带你走进js知识的海洋
Number game
QT creator custom build process
Solve the problem of installing failed building wheel for pilot
[number theory] divisor