Guest User

Untitled

a guest
May 21st, 2018
66
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.33 KB | None | 0 0
  1. # First run setup_autossh_server.sh on your server THEN run this one
  2. # Install autossh
  3. sudo apt install autossh
  4. # Create user tunnel
  5. sudo useradd -m tunnel
  6. sudo su tunnel
  7. # Create key pair
  8. ssh-keygen
  9. # Copy it to the server
  10. ssh-copy-id -i tunnel@[YOU IP/DOMAIN HERE]
  11.  
  12. autossh -nNT -L [PORT]:localhost:[PORT] tunnel@[YOU IP/DOMAIN HERE]
Add Comment
Please, Sign In to add comment