Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- SSH Tunneling
- =============
- Local Port Forwarding
- ---------------------
- $ ssh -L 8888:192.168.1.111:1234 bob@ssh.myserver.com
- -- ---- ------------------ ----------------
- Tujuannya: Dengan mengakses port 8888 di komputer sekarang,
- trafik akan diteruskan ke server ssh ssh.myserver.com memakai koneksi ssh,
- kemudian server ssh akan mengirimnya ke komputer/port 192.168.1.111:1234.
- Remote Port Forwarding
- ----------------------
- $ ssh -L 8888:192.168.1.111:1234 bob@ssh.myserver.com
- -- ---- ------------------ ----------------
- Tujuannya: Agar bila suatu komputer mengakses port 8888 di komputer server ssh ssh.myserver.com,
- trafik akan diteruskan ke komputer sekarang memakai koneksi ssh,
- kemudian komputer sekarang akan mengirimnya ke komputer/port 192.168.1.111:1234.
- Dynamic Port Forwarding:
- ------------------------
- $ ssh -D 8888 bob@ssh.myserver.com
- -- ---- ----------------
- Tujuannya: Untuk menggunakan komputer server ssh ssh.myserver.com sebagai SOCKS Proxy
- yang diakses melalui port 8888 di komputer sekarang.
- Misal di Firefox bisa disetting di "Configure Proxies to Access the Internet",
- pilih "Manual proxy configuration", Socks Host: 127.0.0.1, Port: 8888, dan pilih "SOCKS v5"
- Putty Configuration
- -------------------
- Pergi ke Connection -> SSH -> Tunnels
- Add new forwarded port:
- Source Port: 8888
- Destination: 192.168.1.111:1234
- Pilih Local
- Pilih Auto
- Add
- Add new forwarded port:
- Source Port: 8888
- Destination: 192.168.1.111:1234
- Pilih Remote
- Pilih Auto
- Add
- Add new forwarded port:
- Source Port: 8888
- Destination:
- Pilih Dynamic
- Pilih Auto
- Add
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement