hadoop配置免密登录

1.生成密钥

ssh-keygen -t rsa

所有节点都要执行

2.所有节点执行

ssh-copy-id -i ~/.ssh/id_rsa.pub 用户名1@主机名1

ssh-copy-id -i ~/.ssh/id_rsa.pub 用户名2@主机名2

ssh-copy-id -i ~/.ssh/id_rsa.pub 用户名3@主机名3

3.目录授权

chmod 700 ~/.ssh

chmod 600 ~/.ssh/authorized_keys

4.测试免密登录

ssh 用户名@节点地址

相关推荐
Web极客码几秒前
什么是WHMCS?
服务器·whmcs
SWAGGY..25 分钟前
Linux系统编程:(一)基础指令详解
linux·运维·服务器
一池秋_43 分钟前
etc/sudo.conf is owned by uid 10258, should be 0解决
linux·运维·服务器
dingdingfish1 小时前
TLPI 第19 章 练习:Monitoring File Events
linux·inotify·tlpi·exercise
Bert.Cai1 小时前
Linux basename命令详解
linux·运维·服务器
源远流长jerry1 小时前
Linux 本机网络通信机制深度解析:Loopback 设备原理
linux·运维·服务器·网络·tcp/ip·nginx·负载均衡
网络工程小王1 小时前
【LangGraph 子图(Subgraph)详解】学习笔记
java·服务器·数据库·人工智能·langchain
源远流长jerry2 小时前
Linux 网络性能优化:从应用到内核
linux·运维·服务器·网络·网络协议·性能优化
goyeer2 小时前
【ITIL】指导原则
linux·运维·服务器·数字化·itil
顶点多余2 小时前
自定义协议、序列化、反序列化实现
java·linux·开发语言·c++·tcp/ip