SSH连接问题Google Compute Engine上的Cloudera Manager [英] SSH connection issue Cloudera Manager on Google Compute Engine
问题描述
我已经在Google Compute Engine VM上安装了Cloudera Manager,并成功登录到CM.我正在尝试在其中创建3节点Hadoop(YARN)集群.但是,在ssh凭据页面上,我在其中提供没有密码的用户名,该过程失败(error: Exhausted available authentication methods
).
I have installed Cloudera Manager on a Google Compute Engine VM and successfully logged in to CM. I am trying to create a 3 node Hadoop (YARN) cluster there. However, on the ssh credentials page, where I am providing my username without password, the process is failing (error: Exhausted available authentication methods
).
我尝试手动创建少密码的ssh登录.创建id_rsa
并将id_rsa.pub
复制到authorized_host
.我能够ssh到同一台机器上,但不能到另一台机器上(我确实将instance-1 id_rsa.pub
复制到instance-2的authorized_keys
).
I tried creating password less ssh login manually. Created the id_rsa
and copied id_rsa.pub
to authorized_host
. I was able to ssh to the same machine but not to other machine (I did copy the instance-1 id_rsa.pub
to the instance-2's authorized_keys
).
推荐答案
原来,在ssh配置(/etc/ssh/sshd_config)中将PasswordAuthentication设置为no.因此,在执行ssh时,它不会检查密码身份验证,因此不会要求输入密码.将其更改为是解决了我的问题.
Turns out that PasswordAuthentication was set to no in the ssh config (/etc/ssh/sshd_config). So while doing ssh it was not checking for password authentication hence did not ask for password. Changing this to yes solved my problem.
这篇关于SSH连接问题Google Compute Engine上的Cloudera Manager的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!