Chinaunix首页 | 论坛 | 博客
  • 博客访问: 43505
  • 博文数量: 14
  • 博客积分: 10
  • 博客等级: 民兵
  • 技术积分: 160
  • 用 户 组: 普通用户
  • 注册时间: 2012-07-17 13:10
文章分类

全部博文(14)

文章存档

2015年(1)

2013年(13)

我的朋友

分类: LINUX

2013-02-01 10:29:23

原文地址:如何实现passwordless SSH 作者:icybay

In each cluster node:

mkdir ~/.ssh
chmod 700 ~/.ssh
/usr/bin/ssh-keygen -t rsa (Accept the default location for the key file.Enter empty password)
/usr/bin/ssh-keygen -t dsa (Accept the default location for the key file.Enter empty password)


In one cluster node:
cp ~/.ssh/id_rsa.pub ~/.ssh/authorized_keys2
cat ~/.ssh/id_dsa.pub >> ~/.ssh/authorized_keys2
ssh fstsun004 cat /scratch/sysvldb/.ssh/id_rsa.pub >> ~/.ssh/authorized_keys2  (ssh cat other nodes)
ssh fstsun004 cat /scratch/sysvldb/.ssh/id_dsa.pub >> ~/.ssh/authorized_keys2  (ssh cat other nodes)

scp ~/.ssh/authorized_keys2 fstsun004:/scratch/sysvldb/.ssh/  (scp to other nodes)
chmod 600 ~/.ssh/authorized_keys2  (in each node)
阅读(1306) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~