ssh local port forwarding

forward remote port 80(httpd) to local port 8080

ssh -L 8080:localhost:80 user@200.225.2.4

forward remote port 3306(mysql) to local port 7777

ssh -L 7777:localhost:3306 user@200.225.2.4

forward remote port 80(httpd) to local port 8080 run it in background

ssh -fNT -L 8080:localhost:80 user@200.225.2.4

to check if process is running in background

netstat -nlp | less

Leave a comment