Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/usr/bin/env bash
- #Enter your username and host here
- SERVERUSER=""
- SERVER=""
- screen -dm -S 'autossh' bash -c 'autossh -M 65520 -o ServerAliveInterval=20 -R 2220:localhost:22 $SERVERUSER@$SERVER'
Add Comment
Please, Sign In to add comment