SSH tunnel - Nantawat6510545543/big-data-summary GitHub Wiki

Open Ports or Use SSH Tunnel

If you want to access a service via browser but it's blocked by a firewall, follow one of the methods below.

1. Allow the Port Through Firewall

sudo ufw allow <port>/tcp
sudo ufw reload

2. Use SSH Tunnel (if firewall still blocks browser access)

ssh -N -L <port>:localhost:<port> hadoop@<your-vm-ip> -vv

Then access from your browser:

http://localhost:<port>

🔍 Example: Open HDFS Web UI (port 5601)

Allow through firewall:

sudo ufw allow 5601/tcp
sudo ufw reload

SSH tunnel from your local machine (your pc):

ssh -N -L 5601:localhost:5601 [email protected] -vv

Then open:

http://localhost:5601
⚠️ **GitHub.com Fallback** ⚠️