Support Questions
Find answers, ask questions, and share your expertise
Announcements
Alert: Welcome to the Unified Cloudera Community. Former HCC members be sure to read and learn how to activate your account here.

hdp 2.6.1 ssh

Highlighted

hdp 2.6.1 ssh

New Contributor

Hello,

I installed the last version of HDP Sandbox.But I am facing issues while trying to ssh it . Currently after I get the following message from the virtual box saying that I can access the webbrowser in port 8888 , I ssh with the command

ssh root@127.0.0.1 -p 2222

the problem is that I get the connection to [root@sandbox-host ~]#

I can not access the root@sandbox ~

Anyone faced the same issue ?

Thanks

3 REPLIES 3

Re: hdp 2.6.1 ssh

Super Mentor

@Haifa Ben Aouicha

I am not sure what do you mean by "I can not access the root@sandbox ~"

After doing successful SSH, Which command are you trying ? Are you getting any message in the terminal (Putty)?

Have you tried using the WebTerminal ? : http://127.0.0.1:4200

The Default "root" password should be "hadoop"

.

If you want to access the Sandbox with some hostname like "sandbox.hortonworks.com" Or "sandbox" then you will have to make the "/etc/hosts" file entry in your Local machine from where you are trying to do the SSH. More details on this can be found at: https://hortonworks.com/tutorial/learning-the-ropes-of-the-hortonworks-sandbox/

If on mac or linux, added sandbox.hortonworks.com to your /private/etc/hosts file
If on windows 7, added sandbox.hortonworks.com to your /c/Windows/System32/Drivers/etc/hosts file

.

Re: hdp 2.6.1 ssh

Expert Contributor

just add -v

ssh -v root@127.0.0.1 -p 2222 

Re: hdp 2.6.1 ssh

New Contributor

Hi @Haifa Ben Aouicha , you have mentioned that you get connected to [root@sandbox-host ~]#. This is the docker container/sandbox on which all the hadoop tools are installed. Now, my question is what do you mean by root@sandbox ~ ?

If you mean the VM that hosts the docker, then you can use

ssh -p 2122 root@localhost

you will get connected to [root@sandbox-host ~]# again but now you are logged into the VM that hosts the docker container. You can verify by

docker ps

That will list all the containers running, you will find sandbox-hdp there. If this doesn't answer your question, please elaborate your question.

Don't have an account?
Coming from Hortonworks? Activate your account here