I'm trying to use interactive mode, but my terminal keeps disconnecting

I want to perform interactive tasks on the cluster, but my terminal disconnects because of my spotty internet connection and I lose my progress. Is there a workaround for this?

I always used screen https://linuxize.com/post/how-to-use-linux-screen/, meaning before starting an interactive session on some node, I’d start the screen on the login node, and then do sdev or srun with my interactive parameters. Then if I was kicked off, it would be easy to reattach to it. There is a nice guide / tutorial here

If your cluster has several login nodes just make sure you remembered the one where you started the session. That can be a pain if you forget :slight_smile:

1 Like