start-dfs.sh,权限被拒绝

时间:2018-09-28 13:33:59

标签: hadoop ssh hdfs

hduser@ubuntu:~$ start-dfs.sh
Starting namenodes on [localhost]
localhost: sign_and_send_pubkey: signing failed: agent refused operation
localhost: Permission denied (publickey,password).
Starting datanodes
localhost: sign_and_send_pubkey: signing failed: agent refused operation
localhost: Permission denied (publickey,password).
Starting secondary namenodes [ubuntu]
ubuntu: sign_and_send_pubkey: signing failed: agent refused operation
ubuntu: Permission denied (publickey,password).
hduser@ubuntu:~$ 

1 个答案:

答案 0 :(得分:0)

我认为该命令将为您提供帮助

eval "$(ssh-agent -s)"
ssh-add

重新启动ssh-agent并执行ssh-add。