Support Questions

Find answers, ask questions, and share your expertise

i am unable to login in shell in a box using root/hadoop

avatar
Expert Contributor

Hi,

I'm using the HDP 2.3.2 sandbox. I access to it using an IP adress in my browser. The Ambari view works just fine and i can access Hue using the credentials given by Hortonworks.

However, the built-in-web SSH client "Shell in a box" doesn't allow me access when i use "root" as login and "hadoop" as password.

Any thoughts?

Thank you in advance

1 ACCEPTED SOLUTION

avatar
Master Mentor

@Lubin Lemarchandwhy nor ssh using terminal?

ssh -P 2222 root@127.0.0.1

View solution in original post

11 REPLIES 11

avatar
Master Mentor

@Lubin Lemarchandwhy nor ssh using terminal?

ssh -P 2222 root@127.0.0.1

avatar
Expert Contributor

Thank you for your answer. Unfortunately, i'm not using a local VM (i don't know if i make much sense i'm a newbie). The IP adress i use is 192.xxx.xx.xx like. As i use Windows, i had to download mobaXterm to have a terminal to try your code. I tried it with both ip adresses and with port 22 as well (port given by hortonworks). The best result i get is when i type : ssh -p 22 root@192.xxx.xx.xx. I'm asked for a password which doesn't seem to be "hadoop".

avatar
Master Mentor

@Lubin Lemarchand you need to use the password you used when you installed the cluster. Otherwise read up how to reset your root password

avatar
Master Mentor

Chmod 400 on your ssh key and chmod 600 on .ssh directory @Lubin Lemarchand

avatar
Expert Contributor

That doesn't make any sense to me ^^

avatar
Expert Contributor

Ok thank you very much. I guess i have to contact the IT who installed the cluster 😛

avatar
Master Mentor

avatar
Master Mentor
@Lubin Lemarchand

Did you reset your password after initial login? Whats the error message?

Make sure that you provide the correct password. If you do ssh then login will fail if you don't have the new password.

avatar
Expert Contributor

Thank you for your answer. I did not reset the password since i 've never been able to login. The error message is : Permission denied (publickey,gssapi-keyex,gssapi-with-mic,password).