How Linux modifies the SSH port number

Source: Internet
Author: User

What is SSH?

SSH to Secure Shell

Developed by the network Working Group of the IETF (Working Group);

SSH is a security protocol based on the application layer and the transport layer.

SSH transmission data is encrypted , can effectively prevent the transmission process is intercepted data security.

SSH data is compressed , so it can speed up the transfer

SSH Service Port Modification

1. First check to see if the current Linux installed SSH software package, using Rpm-qa|grep SSH

2. Find the SSH service profile path is generally under/etc/ssh This directory sshd_config this file (note and ssh_config distinguish)

3. Using the VI \vim Editor, open sshd_config This file, search to find the Port field

4. Position the cursor to port 22 This line yy then the keyboard p copy a line, insert Insert Edit first remove #port 22 before the # and then modify the next behavior Port 10021 this adds 22 and 100,212 ports.

5. After setup, such as: Wq Save exit

6. Restart the SSH service:

Service sshd Restart
Stopping sshd:[OK]
Starting sshd:[OK]

7. If you have a firewall set up, modify the Add Firewall rule, or just close the firewall.

How Linux modifies the SSH port number

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.