While installing hadoop in my local machine , i got following error
ssh -vvv localhost
OpenSSH_5.5p1, OpenSSL 1.0.0e-fips 6 Sep 2011
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: Applying options for *
debug2: ssh_connect: needpriv 0
debug1: Connecting to localhost [127.0.0.1] port 22.
debug1: connect to address 127.0.0.1 port 22: Connection refused
ssh: connect to host localhost port 22: Connection refused
can some one help me to resolve this error , than changing port number
If install Hadoop on Mac OSX, make sure turn on Remote Login under System Preferences then File Sharing. This worked on my machine.
Check if this port is open. Maybe your SSH demon is not running. See if sshd is running. If not, then start it.
If you're certain that you have installed ssh, then it's possible that
ssh
and/orsshd
has been terminated or the server service hasn't been started. To check whether these processes are running use:OR
It's likely that
ssh
would be active and running butsshd
would not. To enable them:NB; - some systems have a restart option but mine didn't
For what its worth I got the following error trying to ssh into my local machine, running Ubuntu 16.04 Xenial, from a vm.
It got immediately fixed with:
Take note, Before fix: 'which sshd' returned nothing and 'which ssh' returned
And After the fix: 'which sshd' returned
My port number is different. i tried using
this worked for me
You may should edit your
/etc/hosts
. For example if myhostname
isub0
, but thehostname
in/etc/hosts
islocalhost
, it may occurBecause the
hostname
in/etc/hosts
islocalhost
notub0
.So, you should be careful the
hostname
when building up distributed clusters.