Ways to modify Shadowsocks port numbers and passwords

Source: Internet
Author: User
Tags ssh vps iptables port number

More and more friends bought their own VPS and installed on the Shadowsocks service, if you have not purchased a VPS can refer to: vultr VPS host Japan node use subsection to buy, if you have not set up related services, Please refer to the Tutorial: CentOS a key to install Shadowsocks script, the above work is ready, but need to modify their shadowsocks port number and password and how to operate it? Not all users are familiar with the Linux system, the following is for reference.

First, the Preparation tool

Some users may not be able to use the Linux system's VI editor, but it doesn't matter we can download the configuration file to the local modification and upload the overlay via the SFTP tool. SSH tools are also required to remotely log on to the server, or to download a putty on the web, and prepare tools on these two.
SFTP tool: WinSCP (SFTP client) V5.5.3 Green Chinese version
SSH tool: Xshell5.0.0579 official Chinese version

Second, modify the port number and password

Connect to the server via the WinSCP tool (Figure 2-1), enter the/etc directory, Find the file Shadowsocks.json (Figure 2-2), and then use a text editor to open the file, you can see the specific configuration information, figure 2-3 is a multiuser configuration, if you need to modify the port, please modify the left, the port corresponding to the password, can be modified as needed , and finally save.

Figure 2-1 Login via SFTP

Figure 2-3 Modifying the port number and password

Third, restart the service and shutdown and configure the firewall (iptables)

The modified Shadowsocks.json file is modified to overwrite the source file through the Sftp tool (WINSCP), then connect to the server via the SSH tool (Xshell, putty), and then enter the command:

Restart Shadowsocks:/etc/init.d/shadowsocks restart
Shutdown Firewall (iptables):/etc/init.d/iptables stop

The last port number and password are modified to complete, the use of Shadowsocks connection to enter a new port number and password can be, if there are questions please message feedback.

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.