Skip to content

MarioHdpz/auto-reverse-ssh-tunneling

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 

Repository files navigation

Auto Reverse SSH tunneling

Prerequisites

  1. Have a properly configured VPS to accept ssh tunnels:

    • Incoming ports opened
    • Connection via a .pem key
    • Add this options to your /etc/ssh/sshd_config
      ClientAliveInterval 15
      ClientAliveCountMax 3
  2. Have a sudo user.

How to use

  1. Copy the open-reverse-tunnel.sh to the device where you want to open a reverse tunnel.

  2. Give permissions as an executable script.

    chmod +x open-reverse-tunnel.sh
  3. Run the script:

    ./open-reverse-tunnel.sh -k myKey.pem -p 1234 -u remoteuser -h example.com

    Where:

    • k is the path to the .pem file.
    • p is the VPS port for the reverse tunnel.
    • u is the VPS user.
    • h is the VPS host.

About

Script to open ssh reverse tunnels in remote computers.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages