Broken Pipe Error

I am trying to run an R code on the remote server. I get the following error after around 3 hours every time I try to run the R script:

“packet_write_wait: Connection to 68.181.11.7 port 22: Broken pipe”

Any idea on how I can solve this. I had reserved 10 hours on the server using the `salloc’ command.

I am using a Macbook Pro with macOS Mojave Version10.14.6.

Hi,
This kind of issue has been coming up more frequently as people are using their home networks more. You can add these lines to your ~/.ssh/config file (create if necessary)

Host *
   ServerAliveInterval 60

This will send a signal every 60 seconds to prevent your connection from being terminated.

1 Like