How to check whether ssh service is installed in Linux

青灯夜游
Release: 2022-03-02 13:42:37
Original
17181 people have browsed it

How to check whether the ssh service is installed in Linux: 1. Execute the "sudo ps -e |grep ssh" command in the terminal. If no error is reported and the ssh service starts successfully, the ssh service is installed; 2. In Execute the "ssh -V" command in the terminal. If the version number is displayed, the ssh service is installed.

How to check whether ssh service is installed in Linux

The operating environment of this tutorial: Ubuntu 16.04 system, Dell G3 computer.

How to check whether the ssh service is installed in Linux

Method 1:

In the terminal Execute the following command to check whether ssh is started

sudo ps -e |grep ssh

root 2659
 1 0 18:31 ? 00:00:00 /usr/sbin/sshd

root 2702
 2618 0 18:38 pts/0 00:00:00 grep ssh//这证明ssh已经在运行了,进程名为sshd
Copy after login

If sshd is started, it means it has been started

The picture below shows the running effect when the ssh service is not installed

How to check whether ssh service is installed in Linux

Method 2:

Execute the following command in the terminal to check the ssh version

ssh -V 

OpenSSH_3.9p1, OpenSSL 0.9.7a Feb 19 2003
Copy after login

If the version number is displayed, the installation is successful.

Related recommendations: "Linux Video Tutorial"

The above is the detailed content of How to check whether ssh service is installed in Linux. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:php.cn
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 admin@php.cn
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!