Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Mobaxterm: how to prevent ssh session from exiting?

Tags:

mobaxterm

How do i stop this?

Session stopped     - Press <return> to exit tab     - Press R to restart session     - Press S to save terminal output to file  Network error: Software caused connection abort 

It looks SSH keepalive setting has no effect there

like image 601
Jeff Saremi Avatar asked Aug 07 '19 01:08

Jeff Saremi


People also ask

How do I adjust SSH timeout?

On the server, head over to the /etc/ssh/sshd_config configuration file. The ClientAliveInterval parameter specifies the time in seconds that the server will wait before sending a null packet to the client system to keep the connection alive.


Video Answer


2 Answers

In my case I have SSH keepalive option checked but this happens every now and then.

So what I do is.

  • Disable (uncheck) SSH keeaplive close MobaXterm
  • Open MobaXterm and check SSH keeaplive close MobaXterm (again)
  • Open MobaXterm enjoy the stability for a couple of weeks...

I am using a licensed version on a computer running Windows 10 Professinal version 20H2.

like image 29
jepachecoh Avatar answered Oct 13 '22 21:10

jepachecoh


If you are still looking for the answer like me, here you go!

Settings -> Configuration -> SSH -> SSH keepalive

Restart MobaXTerm after changing the setting for it to take effect.

https://superuser.com/a/1298536

like image 177
helloworld Avatar answered Oct 13 '22 23:10

helloworld