An open API service indexing awesome lists of open source software.

https://github.com/406-mot-acceptable/lmtm

shell script for reverse ssh tunnel automation
https://github.com/406-mot-acceptable/lmtm

script shell ssh-tunnel

Last synced: 3 months ago
JSON representation

shell script for reverse ssh tunnel automation

Awesome Lists containing this project

README

          

# LMTM
The Lean Mean Tunneling Machine.

> [!NOTE]
> Basic Reverse SSH Tunnel Bash Script. This script creates a reverse SSH tunnel to access device(s) behind NAT
> Recreating and automating this shell command - build multiple port-forwards to local device's ports through a single SSH tunnel

----------------------

```sh
ssh -oHostKeyAlgorithms=+ssh-rsa -L 4431:10.0.0.3:443 root@102.217.231.190
```

### vars:
`l_port` - localhost port
`r_host` - remote local host ip
`r_port` - remote local host ip port
`user` - username
`r_serv` - server (public ip)

-----------------------

### Run & exec
make exec
```sh
chmod +x lmtm.sh
```
run:
```sh
./lmtm.sh
```