Support Questions

Find answers, ask questions, and share your expertise

SSH Connection Refused - HDP 2.5 at VirtualBox

avatar
Expert Contributor

Hello,

I imported HDP 2.5 to the latest VirtualBox.

It installed fine.

However, when I try to SSH, it gives me "Connection Refused".

I have no idea how to proceed.

I look forward to your suggestions.

Thanks,

Marcia

1 ACCEPTED SOLUTION

avatar
Expert Contributor

Solution:

Change Network options in VirtualBox. Allow for NAT and Port Forwarding.

View solution in original post

6 REPLIES 6

avatar
Expert Contributor

I have tried these. Still not working...

avatar
Expert Contributor

Solution:

Change Network options in VirtualBox. Allow for NAT and Port Forwarding.

avatar
New Member

best answer to this is to change the root password in splash screen once you enter Alt+F5 and then use passwd to change the new password for root if a system doesn't ask for new password.

And use the new password to login via putty or any client.

avatar
Visitor

The SSH connection error that you are facing while importing HDP 2.5 to the virtual box, check if the SSH service is running inside the VM with the service sshd status. Starting the service usually fixes it. There are many different causes for it, such as:-

1) SSH Service not running

2) Firewall blocking SSH port

3) Incorrect SSH Configuration

4) Network issues

5) Server Overload 

6) SSH Key Authentication issues, etc

You need to understand all the causes thoroughly and also the different ways to fix the error in detail, so it might help solve it. SSH is a method of securely getting access to the remote device or server over an insecure network, usually over the Internet. Therefore, SSH is very important for conveying sensitive information, especially where security is of the utmost importance.

avatar
New Member

The “Connection Refused” error when trying to SSH into your HDP 2.5 VirtualBox setup is a common issue that usually relates to network settings or authentication.

Here are some steps to try:

  1. Ensure your VirtualBox network settings are correctly configured—NAT with port forwarding enabled so the SSH port (usually 22) is reachable from your host machine.

  2. If port forwarding is set but SSH still refuses connection, try switching the network mode to Bridged Adapter temporarily to check connectivity.

  3. Another important step is to reset the root password inside the VM. You can do this by pressing Alt+F5 at the splash screen to open a terminal, then run the command passwd to set a new root password. Use this new password to login via SSH.

  4. Make sure the SSH service is running inside the VM. You can check this by running sudo service ssh status or systemctl status sshd.

For more detailed steps and troubleshooting, this guide can be helpful on SSH connection error

Hope this helps you get SSH access working smoothly!