Home >System Tutorial >LINUX >SSH service installation and startup tutorial: Redhat, Debian and other series of Linux distributions
1. SSH service installation 1. Install ssh service
If you are using redhat, fedora, centos and other series of linux distributionslinux to install sshandroid linux, type the following command:
sudo yum install sshd sudo yum install openssh-server
If you are using debian, ubuntu, linuxmint and other series of linux distributionslinux installation ssh, type the following command:
sudo apt-get install sshd sudo apt-get install openssh-server
2. Start ssh service
service sshd start or /bin/systemctl restart sshd.service or /etc/init.d/sshd start or sudo systemctl restart sshd
Set up and run
chkconfig sshd on
View the status of ssh service
sudo service sshd status
If it appears
Loaded:error(Reason:Nosuchfileordirectory)
If the prompt is garbled in Chinese, it says that the ssh service is not installed. Follow the first step: install the ssh service.
If it appears
Active:inactive(dead)
Indicates that the ssh service has been installed and has not been turned on. According to the second step: start ssh service
The above is the detailed content of SSH service installation and startup tutorial: Redhat, Debian and other series of Linux distributions. For more information, please follow other related articles on the PHP Chinese website!