Local port forwarding:
Suppose you have 15.x.x.x address, and want to access 10.x.x.x address.
ryan is the machine that has duel eth cards, can access 10.x.x.x address.
ssh -L 9001:10.2.11.1:22 ryan -N
And then you can access remote address: 10.2.11.1
#ssh -p 9001 root@localhost
#scp -P 9001 root@localhost:file .
Dynamic port forwarding:
Suppose your work doesn't allow you to access facebook.com/youtube.com.
And you have a server at home which has got public IP address to it. And has SSH server installed on that, and you can access it from anywhere. Now you can simply run the below command on your terminal from the work workstation.
$ ssh -D 6868 user@<HOMESERVER_IP>
In your browser, you need to set the SOCKS proxy to
localhost 6868
Then all traffic will be redirect to your remote homeserver
Your articles and contents are encouraging.
ReplyDeleteUs Technical Support