Home > System Tutorial > Linux > body text

SSH service installation and startup tutorial: Redhat, Debian and other series of Linux distributions

WBOY
Release: 2024-06-15 15:58:32
Original
371 people have browsed it

SSH 服务安装与启动教程:Redhat、Debian 等系列 Linux 发行版

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
Copy after login

If you are using debian, ubuntu, linuxmint and other series of linux distributionslinux installation ssh, type the following command:

安装Linux系统步骤_linux 安装ssh_安装Linux黑屏

sudo apt-get install sshd
sudo apt-get install openssh-server
Copy after login

2. Start ssh service

linux 安装ssh_安装Linux系统步骤_安装Linux黑屏

service sshd start
or
/bin/systemctl restart sshd.service
or
/etc/init.d/sshd start
or
sudo systemctl restart sshd
Copy after login

Set up and run

chkconfig sshd on
Copy after login

View the status of ssh service

安装Linux系统步骤_安装Linux黑屏_linux 安装ssh

sudo service sshd status
Copy after login

If it appears

linux 安装ssh_安装Linux黑屏_安装Linux系统步骤

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!

source:itcool.net
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact [email protected]
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!