When i do ssh to master node as:
ssh hadoop@masternode -i key.pem
The connection is terminated with message :
Connection reset by peer
Is there anyway to maintain the ssh session for long time?
Try to add this to /etc/ssh/ssh_config:
ServerAliveInterval 60