Direct ssh-tunnel
Auto script to make ssh tunnel between 2 server with related system file and cronjob (direct tunnel)
- make system file
- generate key and copy to 2nd server
- create cronjob after every reboot to run the script
- root previllage ( sudo -i )
- update & upgrade server ( apt/yum update )
- Install curl ( apt/yum install curl -y )
apt install shc && wget -4 -N https://raw.githubusercontent.com/opiran-club/ssh-tunnel/main/opiran-sshtunnel && chmod +x opiran-sshtunnel && ./opiran-sshtunnel
yum install shc && wget -4 -N https://raw.githubusercontent.com/opiran-club/ssh-tunnel/main/opiran-sshtunnel && chmod +x opiran-sshtunnel && ./opiran-sshtunnel
credited by OPIran