「hadoop」ssh
【登录】
ssh 用户名@服务器地址
【安装ssh服务器】
$apt-get install openssh-server
【远程复制】
$ scp ~/.ssh/id_dsa.pub hadoop@slave:~/
【SSH无密码登录】
A 想ssh无密码登录 B
在A中生成公钥 $ssh-keygen -t rsa
把公钥添加到B中 $ssh-copy-id chendajian@B // chendajian为用户名
【登录】
ssh 用户名@服务器地址
【安装ssh服务器】
$apt-get install openssh-server
【远程复制】
$ scp ~/.ssh/id_dsa.pub hadoop@slave:~/
【SSH无密码登录】
A 想ssh无密码登录 B
在A中生成公钥 $ssh-keygen -t rsa
把公钥添加到B中 $ssh-copy-id chendajian@B // chendajian为用户名