-
-
Notifications
You must be signed in to change notification settings - Fork 135
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Any option to auto close ssh session after some inactive time #79
Comments
I think it's the job of the remote server that accept connection. |
Hi could you please define but client can bypass it by sending empty packages. sshpiper does not have such kind of option today, but it is easy for piper to add a timeout for pipes. |
Thanks @tg123 @shiipou for your reply. Yes that will work. We have many servers in the system and it will be difficult to set in each server. We need a feature like once inactive time set from our system, all users in sshpiper connection will auto close it when inactive time limit reached. I will check it with code how we can implement it. It would be great If you can provide some guidelines for that code. |
To set it, you can easily create a script on a machine that can reach all servers in SSH. Use the an To configure it in sshpiper you'll need to add a timer on each connection that will be reset on each data received from the client in this file : sshpiperd/sshpiperd.go |
Thanks again for your input, I will work on sshpiperd/sshpiperd.go to implement the feature. |
PR is welcomed |
Hi Team,
Thanks for this wonderful project.
Can you please update, Is there any option to close session after some inactive time Eg: 5mins of inactivity
I have checked in docs and issues and i couldn't find it.
The text was updated successfully, but these errors were encountered: