SSH timeout


Recommended Posts

I was running 6.2.4, and running a ssh session as root to run xfs defrag in verbose mode, worked great and the session stayed open for at least 10hrs or more.

Today I upgraded to 6.5.3. ssh'd in, kicked of my next defrag and at some point it closed the ssh session, so where is the best place to change the idle time out? sshd_config or is there a shell environment variable set?

Link to comment

 First few lines of sshd -T

I guess in 6.2.4 it wasn't set.

port 22
addressfamily any
listenaddress [::]:22
listenaddress 0.0.0.0:22
logingracetime 120
x11displayoffset 10
maxauthtries 6
maxsessions 10
clientaliveinterval 0
clientalivecountmax 3
streamlocalbindmask 0177
permitrootlogin yes
ignorerhosts yes

Will the following work

 

clientaliveinterval 86400
clientalivecountmax 3

 

Edited by fishface
Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.