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.

Can no longer Login to Sandbox on Port 2222

Can no longer Login to Sandbox on Port 2222

New Contributor

Hello Community,

Can someone let me know why for some reason I can no longer ssh to the Sandbox on port 2222?

Cheers

Carlton

14 REPLIES 14

Re: Can no longer Login to Sandbox on Port 2222

Super Mentor

@Carlton Patterson

Please check if your Docker Container started fine or not?

For that you will need to login to your VM on port 2122. From here actually the docker container is started.

# ssh root@127.0.0.1  -p 2122
Enter Password : hadoop

.

Please check if the sandbox docker container is started properly or not?

# systemctl status sandbox.service
# docker ps -a
# cd /root/start_scripts
# ./start_sandbox.sh

.

Re: Can no longer Login to Sandbox on Port 2222

New Contributor

Hi Jay,

Going to check that now .. stay with me mate

Re: Can no longer Login to Sandbox on Port 2222

New Contributor

Hi Jay,

Please take a look at the screen shot when I attempt your suggestion

56550-um.png

Re: Can no longer Login to Sandbox on Port 2222

Super Mentor

@Carlton Patterson

Looks like you are already inside the "root@sandbox-host" so from there ssh to 2122 will not work.

If you want to login to the VM where the Docker is starting then you will need to do SSH to port 2122 form your Laptop.

If that too does not work then please try to power off the Virtualbox instance and then Start it freshly.

Re: Can no longer Login to Sandbox on Port 2222

New Contributor

Hi Jay,

Will a reboot allow me to enter on port 2222 ? At the moment I keep on getting the error below

56551-umbari.png

Re: Can no longer Login to Sandbox on Port 2222

Super Mentor

@Carlton Patterson

I have a quick query ... Which host is this "root@sandbox-host" which we see in your terminal? (Is it your latrop host)

Are you able to do ssh to port 2122 form your laptop?


Highlighted

Re: Can no longer Login to Sandbox on Port 2222

New Contributor

Hi Jay,

It's hosted on ESXi 5.5 and I access it using vSphere client

Re: Can no longer Login to Sandbox on Port 2222

New Contributor

Hi Jay,

Another other thoughts?

Re: Can no longer Login to Sandbox on Port 2222

Super Mentor

@Carlton Patterson

For example:

From my physical machine i do this:

localmachine:~ jsensharma$ ssh root@127.0.0.1 -p 2122
root@127.0.0.1's password:  hadoop


Then i am able to login to the VM and can see the following prompt where i run the below set of commands:

[root@sandbox-host ~]# 

.

Checking if docker is running? And you see that port 2222 is mapped as "0.0.0.0:2222->22"

# docker ps -a
CONTAINER ID  IMAGE  COMMAND  CREATED  STATUS  PORTS  NAMES
abf422a247dc
  sandbox  "/usr/sbin/sshd -D"  6 days ago  Up 4 minutes  
0.0.0.0:1000->1000/tcp, 0.0.0.0:1100->1100/tcp, 
0.0.0.0:1220->1220/tcp, 0.0.0.0:1988->1988/tcp, 
0.0.0.0:2049->2049/tcp, 0.0.0.0:2100->2100/tcp, 
0.0.0.0:2181->2181/tcp, 0.0.0.0:3000->3000/tcp, 
0.0.0.0:4040->4040/tcp, 0.0.0.0:4200->4200/tcp, 
0.0.0.0:4242->4242/tcp, 0.0.0.0:5007->5007/tcp, 
0.0.0.0:5011->5011/tcp, 0.0.0.0:6001->6001/tcp, 
0.0.0.0:6003->6003/tcp, 0.0.0.0:6008->6008/tcp, 
0.0.0.0:6080->6080/tcp, 0.0.0.0:6188->6188/tcp, 
0.0.0.0:7777->7777/tcp, 0.0.0.0:8000->8000/tcp, 
0.0.0.0:8005->8005/tcp, 0.0.0.0:8020->8020/tcp, 
0.0.0.0:8032->8032/tcp, 0.0.0.0:8040->8040/tcp, 
0.0.0.0:8042->8042/tcp, 0.0.0.0:8080->8080/tcp, 
0.0.0.0:8082->8082/tcp, 0.0.0.0:8086->8086/tcp, 
0.0.0.0:8088->8088/tcp, 0.0.0.0:8090-8091->8090-8091/tcp, 
0.0.0.0:8188->8188/tcp, 0.0.0.0:8443->8443/tcp, 
0.0.0.0:8744->8744/tcp, 0.0.0.0:8765->8765/tcp, 
0.0.0.0:8886->8886/tcp, 0.0.0.0:8888-8889->8888-8889/tcp, 
0.0.0.0:8983->8983/tcp, 0.0.0.0:8993->8993/tcp, 
0.0.0.0:9000->9000/tcp, 0.0.0.0:9090->9090/tcp, 
0.0.0.0:9995-9996->9995-9996/tcp, 
0.0.0.0:10000-10001->10000-10001/tcp, 
0.0.0.0:10015-10016->10015-10016/tcp, 0.0.0.0:10500->10500/tcp, 
0.0.0.0:10502->10502/tcp, 0.0.0.0:11000->11000/tcp, 
0.0.0.0:15000->15000/tcp, 0.0.0.0:15002->15002/tcp, 
0.0.0.0:15500-15505->15500-15505/tcp, 0.0.0.0:16000->16000/tcp, 
0.0.0.0:16010->16010/tcp, 0.0.0.0:16020->16020/tcp, 
0.0.0.0:16030->16030/tcp, 0.0.0.0:18080-18081->18080-18081/tcp, 
0.0.0.0:19888->19888/tcp, 0.0.0.0:21000->21000/tcp, 
0.0.0.0:33553->33553/tcp, 0.0.0.0:39419->39419/tcp, 
0.0.0.0:42111->42111/tcp, 0.0.0.0:50070->50070/tcp, 
0.0.0.0:50075->50075/tcp, 0.0.0.0:50079->50079/tcp, 
0.0.0.0:50095->50095/tcp, 0.0.0.0:50111->50111/tcp, 
0.0.0.0:60000->60000/tcp, 0.0.0.0:60080->60080/tcp, 
0.0.0.0:2222->22/tcp, 0.0.0.0:1111->111/tcp  sandbox



I see that the docker container is running.

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