How to configure SSH under Linux system? How do I turn on ssh?

Source: Internet
Author: User

SSH is an important way to connect Linux remotely, and how to configure the SSH service to install Linux systems. How do I turn on ssh? Take a look down (this example shows how to open the SSH service for the CentOS system)


1. Log in to the Linux system and open the Terminal command. Enter Rpm-qa |grep ssh to find out if the current system is installed


2. Assume that the SSH package is not installed and can be installed through the Yum or RPM installation package (not in detail)


Start the SSH serviceOnce the installation is done, the SSH service is turned on. SSH services are generally called SSHD
    1. command line input service sshd start to start or use/etc/init.d/sshd start


Configuration \ View Sshdport

View or edit an SSH service configuration file, such as Vi/etc/ssh/sshd_config

Suppose you want to change the port, the default 22port after the port is changed to another port (note the previous # number to be removed)



Remote connection SSH

Suppose you need to connect to SSH remotely. It is necessary to open the 22port on the fire wall.

. Turn off the firewall or set the 22port exception



How to configure SSH under Linux system? How do I turn on ssh?

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.