hadoop单机ssh免密登录

1. 在hadoop目录下生成密钥对

复制代码
[root@master centos]# cd /usr/apps/hadoop-2.7.1/ 
[root@master hadoop-2.7.1]# ssh-keygen -t rsa  //在hadoop目录下生成密钥对

2.找到密钥对的位置

复制代码
[root@master hadoop-2.7.1]# find / -name .ssh //找到密钥对的位置
复制代码
cd [root@master hadoop-2.7.1]# cd /root/.ssh //进入密钥对位置
[root@master .ssh]# ll

3.把公钥复制到免密登录的机器上

复制代码
[root@master .ssh]# ssh-copy-id localhost //把公钥复制到免密登录的机器上
相关推荐
大大大大晴天14 分钟前
Hudi技术内幕:RecordPayload到RecordMerger
大数据
SelectDB15 小时前
秒级弹性、最高降本 70%:SelectDB Serverless 如何重塑云数仓资源效率
大数据·后端·云原生
WhoAmI15 小时前
MapReduce框架原理解析一:InputFormat
大数据·hadoop
WhoAmI15 小时前
MapReduce框架原理解析三:OutputFormat
大数据·hadoop
WhoAmI15 小时前
MapReduce框架原理解析二:Shuffle
大数据·hadoop
LinXunFeng1 天前
Obsidian - 使用 Share Note 分享笔记并自部署
前端·笔记·github
大大大大晴天2 天前
Hudi技术内幕:Key Generation原理与实践
大数据
得物技术5 天前
从埋点需求到规则资产:Hermes Agent 重构得物数仓工作流
大数据·llm·ai编程
久美子5 天前
AI驱动数仓建设的Harness工程实践——本体建模、知识分层与上下文工程
大数据
大树886 天前
金刚石散热越强,管路越先见顶
大数据·运维·服务器·人工智能·ai