我正在尝试在我的 MacBook Air M1 上安装 Hadoop,当我在终端中输入 start-all.sh 时,它提示
fatix@localhost: Permission denied (publickey,password,keyboard-interactive).
我按照以下步骤生成 ssh 密钥:
ssh-keygen -t rsa -P '' -f ~/.ssh/id_rsa
cat ~/.ssh/id_rsa.pub >> ~/.ssh/authorized_keys
chmod 600 id_rsa
像这样更改我的配置文件:
Host *
UseKeychain yes
AddKeysToAgent yes
IdentityFile ~/.ssh/id_rsa
但是,当我输入 ssh localhost 时,系统要求输入密码。我做错了什么?