Chinaunix首页 | 论坛 | 博客
  • 博客访问: 1420392
  • 博文数量: 239
  • 博客积分: 5909
  • 博客等级: 大校
  • 技术积分: 2715
  • 用 户 组: 普通用户
  • 注册时间: 2010-07-24 20:19
文章分类

全部博文(239)

文章存档

2014年(4)

2013年(22)

2012年(140)

2011年(14)

2010年(59)

我的朋友

分类: LINUX

2011-12-31 14:26:57

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)
阅读(4083) | 评论(0) | 转发(1) |
0

上一篇:查看已安装PERL的模块

下一篇:先这么着吧

给主人留下些什么吧!~~