Search code examples
amazon-web-servicessshemramazon-emr

EMR ssh on Master node


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?


Solution

  • Try to add this to /etc/ssh/ssh_config:

    ServerAliveInterval 60