Configure SSH in CentOS | enable SSH

Source: Internet
Author: User
SSH is an important method for Linux remote connection. how do I configure and install the SSH service for linux and enable SSH? Next let's take a look (this example shows how to enable the SSH service in centos) 1. log on to the linux system and open the terminal command. Enter rpm-qa | grepssh to check whether the current system has been installed. 2. if the SSH software package is not installed, run

SSH is an important method for Linux remote connection. how do I configure and install the SSH service for linux and enable SSH? Next let's take a look (this example shows how to enable the SSH service in centos)

1. log on to the linux system and open the terminal command. Enter rpm-qa | grep ssh to check whether the current system has been installed

2. if you have not installed the SSH software package, you can install it through the yum or rpm installation package (not specific)
Start the SSH service

After the installation is complete, start the ssh service. The Ssh service is generally called SSHD.
  1. Enter service sshd start in the command line to start or use/etc/init. d/sshd start

     

Configure \ view SSHD Port

View or edit the SSH service configuration file, such as vi/etc/ssh/sshd_config

If you want to modify the port, change the default port 22 next to the port to another port (note that the # above should be removed)

Connect to SSH remotely

To remotely connect to SSH, open port 22 on the firewall.

. Disable the firewall, or set Port 22 as an exception.

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.