I just introduced an article about scientific Internet access. However, I have free ssl in hand, so here is a brief introduction to how to use ssl scientific Internet access on ubuntu.
1. Install ssh
By default, the ssh server and client have been installed on ubuntu, but if there is no client on your computer (because we want to access the Internet scientifically, we only need the client ), you can install it by using simple commands.
Sudo apt-get install openssh-client
2. Start and connect
If you already have an ssl account, such as abc and password 123, and your ssl server address is xxx. xxx, run the following command:
Sudo ssh-qTfnN-D 7070 abc@xxx.xxx.xxx.xxx
The above 7070 specifies the port number occupied by the ssl client after it is started. It will be used later.
After executing the command, you will be asked to enter the user password of the current logon system, then enter the password of the ssh server, and enter 123.
Normally, it is connected to the ssl server.
3. Set browser proxy
Take firefox as an example. Open the network-connection settings of the browser and you can set the proxy. Select manual settings, as shown in the figure below:
Select socks5. You can also set a website without a proxy. Click OK, and your browser will be able to access the Internet through ssl science.
Other problems
But there are some problems here. First, ssh is not self-started. After restarting the computer, you need to reconnect to ssl; second, firefox accesses the website through ssl, if your ssl server cannot access Chinese websites, or the access speed is slow, it will be very troublesome. You need to first disable the proxy and then access it. When you want to access the Internet scientifically, and then open the browser proxy. In the past, there was an autoproxy plug-in that could be used to intelligently determine whether a proxy is needed, but I think it is not easy to use, so it is useless.
Here you need to understand these concepts. ssh is a service process of ubuntu. Previously, it can be operated through service sshd, but it is not working now. ssl is a service provided by the service provider and has nothing to do with your local machine, you just use it as a tunnel to access the Internet. Setting up a browser proxy allows your browser to connect to the ssl server through the ssl tunnel. This is equivalent to using the ssl Server as a transfer station. Connect to it first and then let it access the website, return the Accessed website data to you.