I am a beginner in hadoop, and I am trying to set-up hadoop cluster in fully distribution mode. My master is windows and my slave machine is Linux running on VM. I have created SSH keys and in both windows and linux and have copied the public key from my master windows machine to Linux slave machine. Hence I am able to SSH from Windows to linux by using the below command without giving password
ssh [email protected]
where 10.0.0.227 is the IP address of my slave Linux machine and I am able to access the linux from windows. But when I try to do the other way (SSh from my slave linux to my master windows) I am not able to connect and I am getting the below error:
sriram@sriram-virtual-machine:~$ ssh [email protected]
[email protected]'s password:
Permission denied, please try again.
[email protected]'s password:
Permission denied, please try again.
[email protected]'s password:
Permission denied (publickey,password,keyboard-interactive).
sriram@sriram-virtual-machine:~$
where 10.0.0.202 is the IP address of my master windows machine.
i tried to copy the public keys from Linux to windows and I am not able to do that as well
sriram@sriram-virtual-machine:~$ ssh-copy-id -i /home/sriram/.ssh/id_rsa.pub
[email protected]
/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: INFO: 1 key(s) remain to be installed -- if you are
prompted now it is to install the new keys
[email protected]'s password:
Permission denied, please try again.
[email protected]'s password:
Permission denied, please try again.
[email protected]'s password:
Permission denied (publickey,password,keyboard-interactive).
Could you please guide me as I am struck at this point. is it fine to have SSH working from Master to slave alone or is it necessary to have the SSH work both the way (Master to Slave and Slave to Master) to have hadoop run in pseudo distribution mode? Please advise me on where I am going wrong. I wanted to connect without password
I am using cygwin in windows and have the SSH and keys created in windows using it. I do not have external client such as Putty. And having keys created, I am able to connect from windows(Master) to Linux(Slave).
Sorry, I updated IPAddress wrongly. Now I have them updated. 10.0.0.227 is the IP address of my master(Windows) machine 10.0.0.203 is the IP address of my slave(Linux) machine.
LogLevel
toLogLevel = DEBUG3
, restart the server, attempt the SSH connection again from Linux, then review the server's log to determine why the server is rejecting your key. Just an FYI, Windows'%ProgramData%\ssh\sshd_config
should be customized and I provide a general template here.