CentOS免密登录设置
来源:互联网 发布:淘宝退货官方寄快递 编辑:程序博客网 时间:2024/05/16 10:16
需求:学习hadoop 单机免密登录shell
ssh-keygen -t dsa -P '' -f ~/.ssh/id_dsa
会在/hadoop/home下生成
id_dsa id_dsa.pub 这连个文件
然后进行
[hadoop@SOC-15 ~]$ cat ~/.ssh/id_dsa.pub >> ~/.ssh/authorized_keys[hadoop@SOC-15 ~]$ chmod 700 ~/.ssh[hadoop@SOC-15 ~]$ chmod 600 ~/.ssh/authorized_keys [hadoop@SOC-15 ~]$ ssh localhostThe authenticity of host 'localhost (::1)' can't be established.RSA key fingerprint is a0:fc:1d:9b:4d:fe:7d:a8:4d:5b:8f:25:90:b7:61:94.Are you sure you want to continue connecting (yes/no)? yesWarning: Permanently added 'localhost' (RSA) to the list of known hosts.Last login: Fri Nov 10 09:55:14 2017 from localhost
登录成功
分发免登录到其他remote服务器
cat ~/.ssh/id_dsa.pub | ssh hadoop@master.hadoop 'cat - >> ~/.ssh/authorized_keys'
https://www.cnblogs.com/mophee/archive/2013/04/21/3033859.html
阅读全文
0 0
- CentOS免密登录设置
- Centos 免密码登录设置
- Ubuntu设置SSH免密登录(不同于CentOS)
- Ubuntu设置SSH免密登录(不同于CentOS)
- Centos 7 免密登录
- ssh免密登录设置
- ssh免密登录设置
- SSL设置免密登录
- [备忘]CentOS 7.2 SSH免密登录
- centos 7.x 实现免密登录
- centos 免密码登录
- CentOS 6.5下设置主机之间的SSH免密登录
- 如何在 CentOS / RHEL 上设置 SSH 免密码登录
- 在CentOS/RHEL上设置SSH免密码登录
- 如何在 CentOS / RHEL 上设置 SSH 免密码登录
- 关于Centos 7设置host,并配置ssh免登录
- CentOS配置SSH免密码登录(密匙登录)
- linux设置ssh免密登录
- Scrapy 和 scrapy-redis的区别
- makefile 坑若干
- java集合分析(6):AbstractList
- 自定义JAVA线程池拒绝策略
- Linux的初步学习(3)
- CentOS免密登录设置
- HTML5实现图片压缩上传功能
- HOG+LBP+Haar
- 我的第一篇博客————从TI创新实验室开始
- 【oracle无法远程连接】oracle设置允许远程连接
- IndicateProgressBar 带指示器的ProgressBar进度条
- JAVA多线程有哪几种实现方式?
- 用Vue写backToTop指令
- Spring MVC 使用SQL进行模糊查询