ssh tunnel

Posted oxspirt

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了ssh tunnel相关的知识,希望对你有一定的参考价值。

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 [email protected] -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的主要内容,如果未能解决你的问题,请参考以下文章

CentOS 8 启用 ssh 服务

PyCharm SSH 隧道通过本地 ssh 配置 (~/.ssh/config)

salt-ssh与ssh的区别

ssh 命令怎么用?

ssh(不是openssh) 做无密码登陆,怎么每次ssh 登陆还是要输入密码呀?

万字详解SSH(SSH登录原理+SSH配置+模拟实现SSH免密登录)