SSH proxy settings (Windows and Linux multiple ways) __linux

Source: Internet
Author: User
Tags ssh account ssh server

The premise is that you need an SSH account "Windows System" 001 ssh + bitvise tunnelier Implementation Socks Proxy

Tools that need to be used:

1, Bitvise Tunnelier

Set up:

1, SSH server ip:port, verify the way

2, generally remove on Login inside the Open Terminal

3, the default

4, the default

5, open socks/http Proxy forwarding,listen Interface According to need to fill out, if only allow their own host connection, then fill 127.0 0.1, port default 1080 can

6, SSH tab is a number of options, such as whether the compression and so on, according to the need to set

7, set up after you can click on the left side of the save, to facilitate the next direct landing. Then click Login to see the successful log

"IE proxy settings"

1, Internet Options-Connection-LAN settings

2, check "For LAN use Proxy server"-Advanced

3, in the socket column to fill out the address and the port just set up, OK, OK

"Firefox proxy settings"

1, Options-advanced-Network-connection-settings

2, manually configure the agent, in the Socks host column just set the address and port, OK, OK

002 SSH + bitvise Tunnelier + Privoxy implementation HTTP Proxy

The above is the SOCK4 proxy method, but some times need to use the HTTP proxy, you can set the following way

Tools that need to be used:

1, Bitvise Tunnelier

2, Privoxy

Set up:

The Bitvise tunnelier settings are the same as above, and the only thing that needs to be set is Privoxy, which converts the SOCKS proxy to the HTTP proxy.

After the Privoxy is started, the right key notification area icon-edit ...-Main Configuration, opens Config.txt, and edits the following two:

1, modify the HTTP proxy listen-address, including Ip:port, if just their own use, set to 127.0.0.1:8118

2, enable FORWARD-SOCKS4A, the HTTP forwarding to the previous set up a good tunnelier socks agent, OK

Set the HTTP bar on the browser settings and fill in the address and port of the Privoxy settings

"IE proxy settings"

"Firefox proxy settings"

"Linux system" 003 Linux SSH Implementation SOCKS Proxy

Tools that need to be used:

None (Linux system directly supports SSH command line)

Set up:

1. Start Agent Service

ssh-cfng-d 0.0.0.0:1080-l username xxx.xxx.xxx.xxx

The meaning of each parameter:

-c compressed data during transmission

-F Enter password login, ssh into the background run

-N does not execute remote commands, only port forwarding is provided. For SSH2 protocol only

-G allows remote host to connect SSH to the originating port

-D Sets the SOCKS proxy address and listening port, and specifies IP as 127.0.0.1 if only local access is allowed

-L SSH Login username

-I specifies the private key for SSH login, which is required if the public key, private key pair is logged

You can use the man SSH command to get more detailed documentation

2, browser socks Socket agent configuration

and 001 settings in the same way 004 Linux SSH + Privoxy implementation HTTP Proxy

Tools that need to be used:

1, Privoxy

Set up:

1. Installation Privoxy

# apt-get Install Privoxy

2. Configure Privoxy

# Vim/etc/privoxy/config

Search listen-address and change to:

Listen-address 0.0.0.0:8118

Only local change to 127.0.0.1 is allowed

Search FORWARD-SOCKS4 and change to:

1249 forward-socks4/127.0.0.1:1080.

The IP address and port of the socks agent, note that there is a point at the end

If you have access permissions, you can search for permit-access and specify the corresponding Ip:port

Note:

The difference between SOCKS4 and socks4a:

SOCKS4: First in the local DNS resolution domain name, and then through the Proxy Server request page
SOCKS4A: Resolving domain Names in Proxy server DNS

3, restart Privoxy

#/etc/init.d/privoxy Restart

If you are connected using Telnet IP Port, a preliminary description of the successful Privoxy configuration

4, SSH open SOCKS4 Agent

ssh-cfng-d 0.0.0.0:1080-l username xxx.xxx.xxx.xxx

5. Configure HTTP Proxy and 002 configuration in the browser the same way

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.