Unable to SSH into Sandbox 1.3 version

Tagged: ,

This topic contains 11 replies, has 8 voices, and was last updated by  Dave 3 weeks, 2 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 11 replies - 1 through 11 (of 11 total)

You must be to reply to this topic. | Create Account

  • Author
    Replies
  • #66812

    Dave
    Moderator

    Hi Surya,

    Please use this command:

    ssh root@127.0.0.1 -p 2222

    You should be able to connect into the sandbox.

    Thanks

    Dave

    Collapse
    #66753

    surya nemani
    Participant

    Hi Guys,
    Please share how to resolve this connection error. I am also facing a similar issue.
    ssh: connect to host 127.0.0.1 port 22: Connection refused

    I tired all the options but could not connect.
    Why is this an issue? why there is no proper guidance for this from the Horton Works?

    Thank You in Advance if somebody has an answer for this.

    Collapse
    #63383

    Anonymous

    Hi Sasha,
    Even I m getting same error connection refused for your provided command => ssh -p 2222 root@127.0.0.1 and getting error cound not resolver host name or service not know.
    for first command => $ ssh root@127.0.0.1:2222

    Collapse
    #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 11 replies - 1 through 11 (of 11 total)
Hortonworks Data Platform
The Hortonworks Data Platform is a 100% open source distribution of Apache Hadoop that is truly enterprise grade having been built, tested and hardened with enterprise rigor.
Get started with Sandbox
Hortonworks Sandbox is a self-contained virtual machine with Apache Hadoop pre-configured alongside a set of hands-on, step-by-step Hadoop tutorials.
Modern Data Architecture
Tackle the challenges of big data. Hadoop integrates with existing EDW, RDBMS and MPP systems to deliver lower cost, higher capacity infrastructure.