Home Forums Hortonworks Sandbox Unable to SSH into Sandbox 1.3 version

Tagged: ,

This topic contains 8 replies, has 5 voices, and was last updated by  Aditya Y 1 week, 4 days ago.

  • Creator
    Topic
  • #30621

    Ram Kotamaraja
    Participant

    Hi,

    I am using Sandbox v1.3 with VirtualBox 4.2.x on Macbook Pro.

    When I run the Sandbox, I get the following info:

    Browser access: http://127.0.0.1:8888
    SSH Access: 127.0.0.1:2222
    I installed Ambari on the VM and I can access Ambari at: http://127.0.0.1:8080

    When I try to access SSH, I get the following errors:
    $ ssh root@127.0.0.1:2222
    Message: ssh: Could not resolve hostname 127.0.0.1:2222: nodename nor servname provided, or not known
    $ ssh root@127.0.0.1
    ssh: connect to host 127.0.0.1 port 22: Connection refused

    I logged into VM and tried

    #netstat -anp|grep 2222
    There is no output. Basically looks like port 2222 is not open.

    I am wondering what I am doing wrong? Can somebody shed light on how I can do SSH to Sandbox?

Viewing 8 replies - 1 through 8 (of 8 total)

You must be logged in to reply to this topic.

  • Author
    Replies
  • #60198

    Aditya Y
    Participant

    Hi Sasha, unfortunately the solution you provided didnt work for me!!
    ssh -p 2222 root@127.0.0.1
    ssh root@127.0.0.1 -p 2222

    Both the commands gave me same response. Connection refused!!!
    could you pls help?

    Collapse
    #31147

    Sasha J
    Moderator

    hadoop

    Collapse
    #31059

    Cyril F
    Member

    what is the root password?

    Collapse
    #30825

    Ram Kotamaraja
    Participant

    Sasha,

    You rock. Thats works like a champ.

    Collapse
    #30824

    Sasha J
    Moderator

    Ram,
    command should be:

    ssh -p 2222 root@127.0.0.1

    Sandbox uses private network and NAT.

    Thank you!
    Sasha

    Collapse
    #30818

    Ram Kotamaraja
    Participant

    Wes,

    Thanks for the input. I will try VMWare.

    Collapse
    #30795

    Wes Floyd
    Member

    Testing this on VMWare I was able to immediately SSH into the sandbox machine. Perhaps there is an issue with the default Virtualbox network settings?

    Collapse
    #30664

    Wes Floyd
    Member

    I’m having the same problem. Even when I add a new network adapter (which gets DHCP address of 10.0.3.15) I can’t ping the system or ssh into it.

    I don’t think the issue is related to SELinux or IPTables. I’ve tried disabling both.

    Note: I’m also testing on VirtualBox. I’ll retry this test on VMWare.

    Collapse
Viewing 8 replies - 1 through 8 (of 8 total)