Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # First run setup_autossh_server.sh on your server THEN run this one
- # Install autossh
- sudo apt install autossh
- # Create user tunnel
- sudo useradd -m tunnel
- sudo su tunnel
- # Create key pair
- ssh-keygen
- # Copy it to the server
- ssh-copy-id -i tunnel@[YOU IP/DOMAIN HERE]
- autossh -nNT -L [PORT]:localhost:[PORT] tunnel@[YOU IP/DOMAIN HERE]
Add Comment
Please, Sign In to add comment