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.
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.