How to modify the Linux remote port/How to modify the SSH port?

Source: Internet
Author: User
Tags ssh port
1. First we go to Linux remotely


The 2.SSH configuration file is in the/etc/ssh/sshd_config file.

3. We modify the port by editing this file to achieve

Vi/etc/ssh/sshd_config

4. Find the #port 22 line, default port 22

We can remove the previous # and change the 22 to another port

5. For example above, I changed the original line to Port 43999

In this way, SSH port is 43999 after restarting SSH.

6. We can see that the system has been listening to 43999 of this port, in fact it is the SSH service.



How to modify the Linux remote port/How to modify the SSH port?

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.