码迷,mamicode.com
首页 > 其他好文 > 详细

ssh tunnel

时间:2019-01-11 17:19:09      阅读:170      评论:0      收藏:0      [点我收藏+]

标签:man   init   connect   cte   password   nta   encrypted   and   linux   

https://peppoj.net/2012/10/tunnel-http-traffic-encrypted-using-polipo-and-ssh/

---------------------

Tunnel HTTP traffic encrypted, using Polipo and SSH

SSH can be used to do allot of great things. Login remotely, transfer files with scp and run single commands for a quick fix. All encrypted! Another great and well-known feature of SSH is SSH tunnelling.

SSH tunneling can be used to tunnel any kind of traffic, and in this guide I’ll focus on HTTP tunneling in conjunction with the proxy client Polipo (encrypted of course).

Things you will need:

  • Linux server
  • SSH daemon running on the server (openssh-server recommended)
  • Polipo daemon running on the server
  • SSH client (openssh-client recommended)

How to:

~$ ssh username@server -L 8118:localhost:8123 -N [Enter]
(Enter password)
Point your web-browsers proxy (FirefoxChrome, etc) to localhost, port 8118

Syntax:

  • -L Specifies the remote address, remote port and local port ([local port]:[remote address]:[remote port])
  • -N Don’t execute any command on the remote machine when connected

Tunnel initiated!

ssh tunnel

标签:man   init   connect   cte   password   nta   encrypted   and   linux   

原文地址:https://www.cnblogs.com/oxspirt/p/10255619.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!