root@hadoop102's password: Permission denied, please try again.
时间: 2023-10-31 20:21:38 浏览: 236
出现 "root@hadoop102's password: Permission denied, please try again" 错误是因为root用户没有权限造成的。解决这个问题的方法是设置root用户的ssh无密码登录。首先,您需要确认是否已经安装了openssh-server,如果没有安装可以通过运行sudo apt-get install openssh-server来安装。然后,您可以按照以下步骤进行root用户的免验证登录设置:
1. 使用root用户运行ssh localhost命令来检查是否需要输入密码。如果需要输入密码,则说明没有开启ssh无密码登录。
2. 使用su命令进入root状态。
3. 运行ssh-keygen -t rsa命令生成密钥对。在生成过程中,按回车键接受默认设置。
4. 运行cat ./id_rsa.pub >> ./authorized_keys命令将公钥添加到authorized_keys文件中。
这样,您就设置了root用户的ssh无密码登录。现在您可以尝试执行start-all.sh命令并输入root密码,应该可以成功执行了。<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* [启动hadoop时报root@localhost's password: localhost: Permission denied, please try again.错误。](https://blog.csdn.net/qq_24326765/article/details/81940094)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_1"}}] [.reference_item style="max-width: 33.333333333333336%"]
- *2* [root@localhost's password:localhost:permission denied,please try again](https://blog.csdn.net/qq_37437983/article/details/105491955)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_1"}}] [.reference_item style="max-width: 33.333333333333336%"]
- *3* [Linux连接mysql报错:Access denied for user ‘root’@‘localhost’(using password: YES)的解决方法](https://download.csdn.net/download/weixin_38611877/13698405)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_1"}}] [.reference_item style="max-width: 33.333333333333336%"]
[ .reference_list ]
阅读全文