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.

unable to Ssh using putty from windows to cloudera-quickstart-vm-4.7.0-0-vmware running vmplayer 7

unable to Ssh using putty from windows to cloudera-quickstart-vm-4.7.0-0-vmware running vmplayer 7

New Contributor

unable to Ssh using putty from windows to cloudera-quickstart-vm-4.7.0-0-vmware running vmplayer 7.

 

I can see ssh running fine

netstat -anp | grep ssh
tcp 0 0 127.0.0.1:22 0.0.0.0:* LISTEN 18763/sshd
tcp 0 0 192.168.207.128:22 0.0.0.0:* LISTEN 18763/sshd

 

Also removed iptables

 

error message connection refused.

 

 

Greatly appreciate help

 

5 REPLIES 5

Re: unable to Ssh using putty from windows to cloudera-quickstart-vm-4.7.0-0-vmware running vmplayer

New Contributor

Had the same problem with the VirtualBox VM.

 

Basically could not ping the VM from my host.

 

Resolution in VirtualBox was to add a second network adaptor for the VM.  I believe that using Bridged networking as opposed to NAT would also work, but this was easy and it allowed the Host to ping the guest.

 

This video shows how to do it for VirtualBox: https://www.youtube.com/watch?v=AhSNj7s5Fko

 

Hope this helps.

 

Morgan

Highlighted

Re: unable to Ssh using putty from windows to cloudera-quickstart-vm-4.7.0-0-vmware running vmplayer

Expert Contributor

Enabling port 22 in iptables worked for me.

 

Just open port 22 and make sure ssh is configured with 22 and sshd service started.

 

 

Re: unable to Ssh using putty from windows to cloudera-quickstart-vm-4.7.0-0-vmware running vmplayer

New Contributor

just set second network as bridge mode. works great CDH 5.8.0

Re: unable to Ssh using putty from windows to cloudera-quickstart-vm-4.7.0-0-vmware running vmplayer

Explorer

try to ping on that ip first (127.0.0.1 or for my case I had to add another bridge ip)
suits well with port 22 as mentioned in @nauseous the port 22 sould be enabled in iptables (firewall) , and so for ssh ( /etc/ssh/sshd_config) check if the port is still commented with # (that means still on default port 22 )
otherwise try to add a new port of your own .

Re: unable to Ssh using putty from windows to cloudera-quickstart-vm-4.7.0-0-vmware running vmplayer

New Contributor

With VM powered down

 

  1. Right-click your virtual machine, select "Settings", and then select "Network".
  2. Next to "Attached to", select "Host-only Adapter". As a side note, "Bridged Adapter" will also work, check the VirtualBox documentation for more details about each option.