HadoopExam Learning Resources

CCD-410 Certifcation CCA-500 Hadoop Administrator Exam HBase Certifcation CCB-400 Data Science Certifcation Hadoop Training with Hands On Lab Hadoop Package Deal

Hadoop ssh installation error on ubuntu - connection refused

Hi im trying to ssh to localhost but it showing a connection refuse error

$ sudo addgroup hadoop
$ sudo adduser --ingroup hadoop hduser
user@ubuntu:~$ su - hduser
hduser@ubuntu:~$ ssh-keygen -t rsa -P ""
Generating public/private rsa key pair.
Enter file in which to save the key (/home/hduser/.ssh/id_rsa):
Created directory '/home/hduser/.ssh'.
Your identification has been saved in /home/hduser/.ssh/id_rsa.
Your public key has been saved in /home/hduser/.ssh/id_rsa.pub.
The key fingerprint is:
9b:82:ea:58:b4:e0:35:d7:ff:19:66:a6:ef:ae:0e:d2 hduser@ubuntu
The key's randomart image is:
hduser@ubuntu:~$ cat $HOME/.ssh/id_rsa.pub >> $HOME/.ssh/authorized_keys
hduser@ubuntu:~$ ssh localhost
ssh:connect to host localhost port 22: Connection refused

the last line shows the error, i dont know what im doing wrong. Im using VMware and running ubuntu using that.


all i had to was install openssh server and it works

Add comment

Security code

You are here: Home Question & Answer Hadoop Questions Hadoop ssh installation error on ubuntu - connection refused