How linux checks to see if the ssh service is installed
This article mainly explains "how to check whether ssh service is installed in linux". Interested friends may wish to take a look. The method introduced in this paper is simple, fast and practical. Let's let the editor take you to learn "how to check whether the ssh service is installed by linux".
Linux to check whether to install the ssh service method: 1, execute the "sudo ps-e | grep ssh" command in the terminal, if there is no error, the ssh service starts successfully, then the ssh service is installed; 2, execute the "ssh-V" command in the terminal, if the version number is displayed, the ssh service is installed.
The operating environment of this tutorial: Ubuntu 16.04 system, Dell G3 computer.
Linux's method to check whether the ssh service is installed
Method 1:
Execute the following command in the terminal to see if ssh is started
Sudo ps-e | grep sshroot 2659 1 0 18:31? 00:00:00 / usr/sbin/sshdroot 2702 2618 0 18:38 pts/0 00:00:00 grep ssh//, which proves that ssh is already running. The process is called sshd.
Sshd indicates that it has been started.
The following figure shows what happens when the ssh service is not installed
Method 2:
Execute the following command in the terminal to view 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.
At this point, I believe you have a better understanding of "how to check whether linux installs ssh services". You might as well do it in practice. Here is the website, more related content can enter the relevant channels to inquire, follow us, continue to learn!