Disconnecting SSH session when there is no activity for ~ 105-116 seconds. Want this behavior changed so it doesn't timeout for 20 minutes but not sure how or where to make a change. Am sure I am missing somethng obvious but I can't figure it out. Thx.
Rebooted the router to make sure someothing wasn't going wonky and same behavior persists.
Via the UI below are the settings I have:
- Administration > System > Basic Config > Auto Logout: 30 mins
- Administration > System > Service > Enable SSH: LAN only
- Administration > System > Service > Allow SSH Port Forwarding: NO
- Administration > System > Service > Allow Password Login: YES
- Administration > System > Service > Authorized Keys: <redacted>
- Administration > System > Service > Enable SSH Brute Force Protection: YES
- Administration > System > Service > Idle Timeout: 20 minutes
- Administration > System > Remote Access Config > Enable Web Access from WAN: NO
- Administration > System > Remote Access Config > Enable Access Restrictions: NO
From the System Messages Log (showing the connect via ssh and the auto disconnect)
Also have Skynet, Scribe, scMerlin, spdMerlin, YazDHCP installed.
FYI locally I've got my .ssh/config setup with:
UPDATE:
When I changed config file: ServerAliveInterval=60, The connection lasts for ~ 60seconds * 6 (ServerAliveCountMax) and then disconnects (~ 360 seconds)
This older thread helped: https://www.snbforums.com/threads/dropbear-timeout.22588/
Rebooted the router to make sure someothing wasn't going wonky and same behavior persists.
Via the UI below are the settings I have:
- Administration > System > Basic Config > Auto Logout: 30 mins
- Administration > System > Service > Enable SSH: LAN only
- Administration > System > Service > Allow SSH Port Forwarding: NO
- Administration > System > Service > Allow Password Login: YES
- Administration > System > Service > Authorized Keys: <redacted>
- Administration > System > Service > Enable SSH Brute Force Protection: YES
- Administration > System > Service > Idle Timeout: 20 minutes
- Administration > System > Remote Access Config > Enable Web Access from WAN: NO
- Administration > System > Remote Access Config > Enable Access Restrictions: NO
From the System Messages Log (showing the connect via ssh and the auto disconnect)
Code:
Feb 27 13:44:52 RT-AC68UTM dropbear[11893]: Password auth succeeded for 'rjsh' from 192.168.1.148:51186
Feb 27 13:46:48 RT-AC68UTM dropbear[11893]: Exit (rjsh): Exited normally
Also have Skynet, Scribe, scMerlin, spdMerlin, YazDHCP installed.
FYI locally I've got my .ssh/config setup with:
Code:
TCPKeepAlive=yes
ServerAliveInterval=15
ServerAliveCountMax=6
Compression=yes
UPDATE:
When I changed config file: ServerAliveInterval=60, The connection lasts for ~ 60seconds * 6 (ServerAliveCountMax) and then disconnects (~ 360 seconds)
This older thread helped: https://www.snbforums.com/threads/dropbear-timeout.22588/
Last edited: