What is SSH? How does Linux modify the SSH port number?

Source: Internet
Author: User
Tags ssh port

SSH connection can remotely manage devices such as Linux, the default LINUXSSH port is 22 port, How to modify the SSH default port, how to increase the SSH port? , let me show you a little bit

Tools/Materials
    • Xshell Putty and other Remote Tools Linux systems
What is SSH?
    1. 1

      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

      END
View SSH Services
    1. 1

      First look at whether the current Linux installed SSH software package, using Rpm-qa|grep SSH

    2. 2

      2. Verify that the SSH service is turned on, and the following is a sample of the CentOS system

    3. 3

      3. Find the SSH service profile path is generally under/etc/ssh This directory sshd_config this file

      END
Edit Modify SSH port number
    1. 1. Using the VI \vim Editor, open sshd_config This file, search to find the Port field. Such as

    2. 2 position the cursor to port 22 this line YY then keyboard p copy a line, insert Insert edit 22 Port 2222

    3. 3 after Setup, for example, Wq save to exit, indicating that a 2222 port number has been added.

    4. 4. After setting up, of course, you need to restart the SSH service.

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

      END
Precautions
    • SSH port default is 22, if you want to modify the direct edit 22 Port Note the previous "#" to remove, and then save the restart
    • If you increase the port number, just follow the small way, add a port to

What is SSH? How does Linux modify 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.