Home >Operation and Maintenance >Linux Operation and Maintenance >How to check whether ssh service is installed in Linux

How to check whether ssh service is installed in Linux

青灯夜游
青灯夜游Original
2022-03-02 11:59:1217317browse

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

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

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!

Statement:
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
Previous article:What does linux d mean?Next article:What does linux d mean?