Slave: ssh: connect to host slave port 22: Connection timed out
Just allow to communicate through Windows Firewall by adding sshd in home as well as public...
and it successfully worked for me hope it will save your time and please remember that your sshd service are running on both the PC while communication.
Related videos on Youtube
Aashu
I have worked in BigData and Machine Learning. Always attract towards new technology and Research.
Updated on September 18, 2022Comments
-
Aashu over 1 year
i have done with single node cluster on two different machine,I have made one as master(192.168.1.1) and other m/c as slave(192.168.1.2), I am successfully able to ping between two machine,I have made the following changes to get into 2 node cluster Update :-
/etc/hosts on both machines hosts.allow
All : Ashish-PC 192.168.1.1 : allow All : slave 192.168.1.2 : allow
master file with
Ashish-PC
client file with
Ashish-PC slave
I am getting an error while copying local host public key to remote host(slave): port 22
ssh-copy-id -i ~/.ssh/id_rsa.pub hadoop@slave /usr/bin/ssh-copy-id: INFO: attempting to log in with the new key(s), to filter out any that are already installed /usr/bin/ssh-copy-id: ERROR: ssh: connect to host slave port 22: Connection timed out
while copying from master node key:-
ssh-copy-id -i ~/.ssh/id_rsa.pub hadoop@slave /usr/bin/ssh-copy-id: INFO: attempting to log in with the new key(s), to filter out any that are already installed /usr/bin/ssh-copy-id: ERROR: ssh: connect to host slave port 22: Connection timed out
i have used cygwin and ssh is working fine on both the PC and I went through some suggestion to change the port number 22(because of ISP problem) but i dont want do that just because. thanks in advance for your help and response.