两种加密算法

一、dsa

首先生成密钥对
	ssh-keygen -t dsa

在其余机器上生成.ssh目录
	ssh localhost
	
将公钥分发给其余机器
	scp id_dsa.pub root@node02:/root/.ssh/node01.pub	(root@node03)

将公钥加入keys中
	(node01)  		   cat id_dsa.pub >> authorized_keys	
	(node02,node03)    cat node01.pub >> authorized_keys	

二、rsa

ssh-genkey -t rsa

ssh-copy-id -i ~/.ssh/id_rsa.pub root@node01
(ssh-copy-id -i node01)

你可能感兴趣的:(simple,hadoop)