# SSH Tunneling

### Forward Connections

```bash
#local port Forward
ssh -L 8000:172.16.0.10:80 user@172.16.0.5 -fN
ssh -L 0.0.0.0:8000:172.16.0.10:80 user@172.16.0.5 -fN

#Dynamic Port Forwarfind
ssh -D 0.0.0.0:1337 user@172.16.0.5 -fN
```

### Reverse Connection

```bash
sudo systemctl status ssh
sudo systemctl start ssh


ssh -R 8000:172.16.0.10:80 kali@172.16.0.20 -i KEYFILE -fN
```
