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
- Host: GitHub
- URL: https://github.com/406-mot-acceptable/lmtm
- Owner: 406-mot-acceptable
- Created: 2025-06-02T19:04:23.000Z (4 months ago)
- Default Branch: main
- Last Pushed: 2025-06-02T20:04:14.000Z (4 months ago)
- Last Synced: 2025-06-29T17:47:40.700Z (3 months ago)
- Topics: script, shell, ssh-tunnel
- Language: Shell
- Homepage:
- Size: 6.84 KB
- Stars: 1
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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
```