SSH无密码确认配置
来源:互联网 发布:上瘾网络剧第二季资源 编辑:程序博客网 时间:2024/04/30 12:52
今天配置hadoop过程中发现,ssh localhost 配置RSA认证(要求无密码),不然要输入三次密码启动服务。
但是郁闷的是我执行了下面的命令却无效
- $ ssh-keygen -t rsa
- Generating public/private rsa key pair.
- Enter file in which to save the key (/home/youruser/.ssh/id_rsa):
- Enter passphrase (empty for no passphrase):
- Enter same passphrase again:
- Your identification has been saved in /home/youruser/.ssh/id_rsa.
- Your public key has been saved in /home/youruser/.ssh/id_rsa.pub.
- The key fingerprint is:
- 11:11:35:75:40:c5:nh:2d:7u:96:c3:rr:81:86:67:53 youruser@yourhost
然后我ssh localhost 却要求输入密码
没办法,我找另外个机器 配置ssh认证,记得以前是配置过的,怎么会失效呢?结果也没成功,最后无奈之下:删除了机器上所有的认证文件:
- rm ~/.ssh/*
重新配置,就好了,哎,又是一次教训,上次配置时候没有做笔记,这次就记下。
当然重新温习了一下:RSA/DSA认证,还是有好处的,记忆中模糊了。
下面有三篇好文章,记得看一下哦,人家讲解的通俗易懂,考虑的又比较全面:
http://www.ibm.com/developerworks/cn/linux/security/openssh/part1/index.html
http://www.ibm.com/developerworks/cn/linux/security/openssh/part2/index.html
http://www.ibm.com/developerworks/cn/linux/security/openssh/part3/index.html
再一个就是网上有些资料,有误导作用,千万小心了,举例:
修改 /etc/ssh/sshd_conf 文件
PasswordAuthentication yes->no
如果你的服务器不在本地,千万不能这样做,万一当前的ssh链接中断,那你得麻烦机房的人给你修改配置了。小心起见,我在本地机器上试验了,RAS认证没弄好,密码验证又禁止了,你哭吧。呵呵
- SSH无密码确认配置
- ssh配置无密码验证
- ssh 无密码登陆配置
- SSH无密码互信配置
- 配置 ssh无密码登陆
- windows ssh无密码配置
- 配置SSH无密码登陆
- ssh配置无密码登录
- SSH无密码互信配置
- 配置ssh无密码登陆
- 配置ssh无密码登录
- SSH无密码登陆配置
- 配置SSH无密码登录
- 配置ssh无密码登录
- 配置ssh无密码访问
- SSH无密码验证配置
- ssh配置无密码登录
- ssh无密码登录配置
- java向上转型和向下转型
- -bash: pecl: command not found的解决方法
- Delphi Web Service 的创建及调试运行
- hibernate 乐观锁与悲观锁使用方法
- 让移植的busybox文件系统(yaffs2)可读写
- SSH无密码确认配置
- Struts2之零配置
- maven实战学习笔记一(坐标和依赖)
- 什么时候该用委托,为什么要用委托,委托有什么好处
- H桥驱动电路
- 最简单实用的MongoDB安装教程:在CentOS中使用 yum 安装MongoDB及服务器端配置详解
- nginx配置rewrite实例【转】
- Microsoft Surface 平板电脑
- gcc4.1以及g++4.1的降级安装(ubuntu)