Home | Mirror | Search

3. OpenSSH Tunnel

mysql tunnel

$ ssh -L 3306:127.0.0.1:3306 user@example.org
		

testing

$ mysql -h 127.0.0.1 -uroot -p test
		

3.1. SOCKS v5 Tunnel

			
ssh -D 1080 <遠程主機地址>
or
ssh -D 7070 <遠程主機地址>
			
			

I prefer 1080 to 7070. the reason is 1080 default for SOCKS port.

ssh neo@www.example.com -D 1080
			
comments powered by Disqus