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
I did all the suggestion above and it did not work. Then I restart the ssh service and it works. This is what I do:
Then I redo
Now I can connect to my localhost. Hope it helps
you need to check the configuration in sshd_config ListenAddress 0.0.0.0 update this and restart the sshd service that will resolve the issue.
If you restart service then it will work
$ service sshd restart
then check
$ ssh localhost
It will work
On mac go to system settings->network->sharing and allow remote login.
try ssh localhost
You should be good.
For Linux:
Remove SSH with the following command:
Install SSH again with:
It might be caused by some of the following:
apt-get install ssh openssh-client openssh-server
ufw allow ssh