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

Problem when user's ip changes #4

Open
ozanAta opened this issue Dec 2, 2016 · 2 comments
Open

Problem when user's ip changes #4

ozanAta opened this issue Dec 2, 2016 · 2 comments

Comments

@ozanAta
Copy link

ozanAta commented Dec 2, 2016

Hi,
Let's say i want to create a reverse tunnel to server b from a machine a with using this script on machine a. After tunnel is on, what would happen if the ip of machine a changes ?

@ozanAta
Copy link
Author

ozanAta commented Dec 2, 2016

I tried this script, yes it does automatically create a tunnel to server, but when the ip of device a changes, i cant access it from the server

@daradib
Copy link

daradib commented Dec 3, 2016

I don't think AUTOSSH_PORT is ever passed to autossh, you can try exporting the variable or better yet rely SSH keepalives with ServerAliveInterval and ServerAliveCountMax options.

If you're using a Debian-based distribution, you can also try sidedoor, my small wrapper package to maintain an SSH connection/tunnel.

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

2 participants