Connect to Host Localhost Port 22: Connection Refused

connect to host localhost port 22: Connection refused

My port number is different. i tried using

ssh localhost -p 8088

this worked for me

ssh connection to host port 22 connection refused

Provide ssh-key less access to all your worker nodes in hosts file, even localhost. Read instruction in the Tutorial of How To Set Up SSH Keys on CentOS 7.

At last test access without password by ssh localhost and ssh [yourworkernode].

Also, run start-dfs.sh and if was successful run start-yarn.sh.

Hadoop: connect to host localhost port 22: Connection refused when running start-dfs.sh


Configure "HADOOP_SSH_OPTS" in your hadoop-env.sh, to add any SSH CLI
options you need to always be present when the Hadoop scripts use SSH.
A line like 'export HADOOP_SSH_OPTS="-p "' perhaps would be what
you are looking for.

Source: Interweb

SSh: Connection refused to localhost

Don't panic! Your command is incorrect.

ssh -vvv localhost -p 8047

The parameter -p 8047 means to reach port 8047, however SSH daemon runs at port 22. The config of sshd you pasted, has already proven my assumption.

You can try to access localhost via SSH by using

ssh hduser@localhost

ssh: connect to host localhost port 2222: Connection refused

cuestion: ¿are you using NAT?... SSH listen p22 by default, if you want connection on p2222 edit the ssh_config placed in /etc/ of your VM Guest... find the line (assuming that you are in a *buntu OS family)

 39 #   Port 22

and change it to

 39    Port 2222

and there you have it on p2222

BTW, your host could'nt see the guest by name "dvader@localhost", because "localhost" it's indeed your HOST & your GUEST maybe another IP, give more details about your VNetwork config...

Sorry for my english :)



Related Topics



Leave a reply



Submit