Disconnect after a while after ssh connection to Ubuntu in Tera Term

Asked 2 years ago, Updated 2 years ago, 141 views

I am using Tera Term Version 4.92 on Windows 7.
I have SSH connection to Ubuntu 14.04.3 LTS in Tera Term, but it will be disconnected after a while.

On the Ubuntu side, /etc/ssh/sshd_conf is configured as follows and a Keep Alive is sent.

ClientAliveInterval 30
ClientAliveCountMax5

Also, on the Tera Term side, set Keep-alive to 30 seconds under Settings - > TCP/IP...

I think both the server side (Ubuntu) and the client side (TeraTerm) regularly skip Keepalive packets to each other, but I don't know why they are not connected.

Please let me know if you know.

ubuntu ssh teraterm

2022-09-30 19:43

7 Answers

How about setting the Term setting > SSH > Heartbeat (keep-alive) to 30 seconds?


2022-09-30 19:43

There may be a slight possibility that the server-side environment variable is TMOUT.


2022-09-30 19:43

If the ssh setting is irrelevant, you might want to set the automatic timeout for the login shell.
TMOUT for bash, autologout for zsh, etc.
I think there is a function to log out without any action for a certain period of time.

I don't know which login shell you are using, but
If you look into that area, you may find out.


2022-09-30 19:43

Do you use ESET?
I've experienced it, but isn't it this way?

Continued ·When SSH is connected to CentOS, it disconnects in about 1 minute


2022-09-30 19:43

Maybe it's because the Ethernet power saving is turned on?

The Internet is choppy frequently in Windows 10→ Power-Saving Ethernet was the reason.


2022-09-30 19:43

I'll set it up on the client side though.

in the User Folder/.ssh/config configuration file I think you can set the following.
ServerAliveInterval


2022-09-30 19:43

"If you go around with ""SSH automatic disconnect"", you'll see a lot of things, but I guess it's around here, right?


2022-09-30 19:43

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.