Reputation: 41
I have a aws ec2 p3.2xlarge instance. I can ssh and connect to it easily. However about after 20 minutes, while I am running a keras model on it, it resets the connection and I am kicked out with the error Connection reset by 54.161.50.138 port 22. I then am able to reconnect, but have to start training the model over again because my progress was lost. This happens every time I connect to the instance. Any idea why this is happening?
For ssh I am using gow which lets me run linux commands on windows - https://github.com/bmatzelle/gow/wiki I checked my public ip address before and after the reset and it was the same. I also looked at the cpu usage using amazon CloudWatch, and it was normal - 20%.
Upvotes: 0
Views: 6232
Reputation: 41
I figured out a partial solution to this. In the instance terminal follow the following steps.
Upvotes: 2