Reverse SSH

Tested on CentOS, but should be applicable on Ubuntu as well.

  1. Add Epel repo,
  2. Install autossh
     $ yum install autossh
  3. Run autossh command with the following format
     $ autossh -M -fN <login@remoteserver> -R :localhost:22
     $ autossh -M 20000 -fN -R 12021:localhost:22

Leave a Reply

Your email address will not be published. Required fields are marked *