用户组:游客
ssh slave1 cat ~/.ssh/id_rsa.pub >> ~/.ssh/authorized_keys 想请教下 为什么会报“Permission denied, please try again” 我已经将authorized_keys删过了
# yum install –y ssh-clients # su hadoop [hadoop@localhost ~]$ cd [hadoop@localhost ~]$ mkdir .ssh [hadoop@localhost ~]$ chmod –R 755 .ssh [hadoop@localhost ~]$ cd .ssh [hadoop@localhost .ssh]$ ssh-keygen –t rsa [hadoop@localhost .ssh]$ cat id_rsa.pub > authorized_keys [hadoop@localhost .ssh]$ chmod –R 755 authorized_keys [hadoop@localhost .ssh]$ ssh localhost
查看 »