Skip to content
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

Feature request: add autossh like option #14

Open
guillaumedenece opened this issue Dec 31, 2019 · 2 comments
Open

Feature request: add autossh like option #14

guillaumedenece opened this issue Dec 31, 2019 · 2 comments

Comments

@guillaumedenece
Copy link

guillaumedenece commented Dec 31, 2019

Hi!

I use mssh to create an SSH tunnel.
Something that I think could be interesting is to have an autossh like option.
This would allow the SSH tunnel to be "persistent", meaning that the tunnel would always run. For example, once the ssh connection times out (By server-side timeout), the tunnel would be re-established automatically.

Thank you!

@yassinecc
Copy link

@LordAlfredo ?

@Maks3w
Copy link
Contributor

Maks3w commented Feb 14, 2021

Could you give a try to this script works entirely inside of ssh/config

https://gist.github.com/Maks3w/de72b0160d5e6af958adc42eab014624

In your case the main line you need to test is Host ... exec "aws-proxy ....."

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants