{"id":8312,"date":"2021-07-15T11:15:19","date_gmt":"2021-07-15T11:15:19","guid":{"rendered":"https:\/\/linuxways.net\/?p=8312"},"modified":"2021-07-18T10:37:09","modified_gmt":"2021-07-18T10:37:09","slug":"how-can-you-check-if-ssh-is-running-on-your-linux-mint-20-system","status":"publish","type":"post","link":"https:\/\/linuxways.net\/de\/mint\/how-can-you-check-if-ssh-is-running-on-your-linux-mint-20-system\/","title":{"rendered":"How Can You Check if SSH is Running on Your Linux Mint 20 System"},"content":{"rendered":"<h2>Introduction:<\/h2>\n<p>SSH is an application layer protocol for ensuring the security of your communication while you operate with an insecure network. It is one of the most crucial protocols of information security. Most flavors of the Linux operating system have SSH installed by default on them. However, you can always check if it is running on your system or not. To figure out the methods of doing so, you will have to thoroughly go through this article.<\/p>\n<h2>Methods of Checking if SSH is Running on a Linux Mint 20 System:<\/h2>\n<p>To check if the SSH server is running on a Linux Mint 20 system, any of the following five methods can be used.<\/p>\n<h3>Method # 1: Using the \u201csystemctl\u201d Command:<\/h3>\n<p>For this method, you will need to execute the command shown below:<\/p>\n<pre><strong>$ sudo systemctl status sshd<\/strong><\/pre>\n<p><strong><img loading=\"lazy\" decoding=\"async\" width=\"457\" height=\"22\" class=\"wp-image-8313\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2021\/07\/word-image-388.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2021\/07\/word-image-388.png 457w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/07\/word-image-388-300x14.png 300w\" sizes=\"auto, (max-width: 457px) 100vw, 457px\" \/><\/strong><\/p>\n<p>The \u201cactive (running)\u201d status in the output of this command represents that SSH is running on our Linux Mint 20 system.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"646\" height=\"295\" class=\"wp-image-8314\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2021\/07\/word-image-389.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2021\/07\/word-image-389.png 646w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/07\/word-image-389-300x137.png 300w\" sizes=\"auto, (max-width: 646px) 100vw, 646px\" \/><\/p>\n<h3>Method # 2: Using the \u201cps\u201d Command:<\/h3>\n<p>The \u201cps\u201d command can be used in the following manner to check if SSH is running on our Linux system or not:<\/p>\n<pre><strong>$ ps aux | grep sshd<\/strong><\/pre>\n<p><strong><img loading=\"lazy\" decoding=\"async\" width=\"393\" height=\"22\" class=\"wp-image-8315\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2021\/07\/word-image-390.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2021\/07\/word-image-390.png 393w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/07\/word-image-390-300x17.png 300w\" sizes=\"auto, (max-width: 393px) 100vw, 393px\" \/><\/strong><\/p>\n<p>The \u201clistener\u201d status against the sshd process in the output of this command implies that SSH is running on our Linux Mint 20 system.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"643\" height=\"111\" class=\"wp-image-8316\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2021\/07\/word-image-391.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2021\/07\/word-image-391.png 643w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/07\/word-image-391-300x52.png 300w\" sizes=\"auto, (max-width: 643px) 100vw, 643px\" \/><\/p>\n<h3>Method # 3: Using the \u201ctelnet\u201d Command:<\/h3>\n<p>The \u201ctelnet\u201d utility can also be used to check the status of SSH by executing the command shown below:<\/p>\n<pre><strong>$ telnet localhost 22<\/strong><\/pre>\n<p>Here, \u201c22\u201d refers to the port to which SSH is allowed to listen by default. However, if in your case, you have configured it to listen on some other port, then you will have to replace \u201c22\u201d with your specific port number.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"402\" height=\"23\" class=\"wp-image-8317\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2021\/07\/word-image-392.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2021\/07\/word-image-392.png 402w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/07\/word-image-392-300x17.png 300w\" sizes=\"auto, (max-width: 402px) 100vw, 402px\" \/><\/p>\n<p>Since the connection to the specified port has been made successfully as you can see from the following image, hence, we can say that SSH is running on our Linux Mint 20 system.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"416\" height=\"113\" class=\"wp-image-8318\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2021\/07\/word-image-393.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2021\/07\/word-image-393.png 416w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/07\/word-image-393-300x81.png 300w\" sizes=\"auto, (max-width: 416px) 100vw, 416px\" \/><\/p>\n<h3>Method # 4: Using the \u201cnetstat\u201d Command:<\/h3>\n<p>The \u201cnetstat\u201d command can also be used to check the status of SSH. However, before doing so, the \u201cnetstat\u201d command should be installed on your Linux Mint 20 system. It can easily be installed through the execution of the below-shown command:<\/p>\n<pre><strong>$ sudo apt install net-tools<\/strong><\/pre>\n<p><strong><img loading=\"lazy\" decoding=\"async\" width=\"456\" height=\"27\" class=\"wp-image-8319\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2021\/07\/word-image-394.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2021\/07\/word-image-394.png 456w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/07\/word-image-394-300x18.png 300w\" sizes=\"auto, (max-width: 456px) 100vw, 456px\" \/><\/strong><\/p>\n<p>The \u201cnetstat\u201d command resides within the \u201cnet-tools\u201d package. Once this package will be successfully installed, you will be able to use the \u201cnetstat\u201d command.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"644\" height=\"345\" class=\"wp-image-8320\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2021\/07\/word-image-395.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2021\/07\/word-image-395.png 644w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/07\/word-image-395-300x161.png 300w\" sizes=\"auto, (max-width: 644px) 100vw, 644px\" \/><\/p>\n<p>Now, you can use the \u201cnetstat\u201d command to check SSH status in the following manner:<\/p>\n<pre><strong>$ sudo netstat \u2013plant | grep :22<\/strong><\/pre>\n<p><strong><img loading=\"lazy\" decoding=\"async\" width=\"491\" height=\"25\" class=\"wp-image-8321\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2021\/07\/word-image-396.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2021\/07\/word-image-396.png 491w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/07\/word-image-396-300x15.png 300w\" sizes=\"auto, (max-width: 491px) 100vw, 491px\" \/><\/strong><\/p>\n<p>The output of this command will verify that SSH is listening on port 22 on our Linux Mint 20 system.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"616\" height=\"109\" class=\"wp-image-8322\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2021\/07\/word-image-397.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2021\/07\/word-image-397.png 616w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/07\/word-image-397-300x53.png 300w\" sizes=\"auto, (max-width: 616px) 100vw, 616px\" \/><\/p>\n<h3>Method # 5: Using the \u201clsof\u201d Command:<\/h3>\n<p>Finally, we can use the \u201clsof\u201d command to check if SSH is running on our Linux system or not by executing it in the manner shown below:<\/p>\n<pre><strong>$ sudo lsof \u2013i<\/strong><\/pre>\n<p>You can skip the \u201csudo\u201d keyword in this command if you are a \u201croot\u201d user. Otherwise, you will have to use this keyword for the desired output to be displayed.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"344\" height=\"23\" class=\"wp-image-8323\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2021\/07\/word-image-398.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2021\/07\/word-image-398.png 344w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/07\/word-image-398-300x20.png 300w\" sizes=\"auto, (max-width: 344px) 100vw, 344px\" \/><\/p>\n<p>The \u201cLISTEN\u201d status with the sshd process indicates that SSH is running on our Linux Mint 20 system.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"646\" height=\"411\" class=\"wp-image-8324\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2021\/07\/word-image-399.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2021\/07\/word-image-399.png 646w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/07\/word-image-399-300x191.png 300w\" sizes=\"auto, (max-width: 646px) 100vw, 646px\" \/><\/p>\n<h2>Conclusion:<\/h2>\n<p>In this article, we presented to you the five different methods of checking if SSH is running on your Linux Mint 20 system or not. Any of these methods can be followed according to the user\u2019s choice. The commands that we have used in all of these methods were built-in except for the \u201cnetstat\u201d command. But the \u201cnetstat\u201d command can also be installed very quickly on a Linux Mint 20 system.<\/p>","protected":false},"excerpt":{"rendered":"<p>Introduction: SSH is an application layer protocol for ensuring the security of your communication while you operate with an insecure network. It is one of the most crucial&hellip;<\/p>","protected":false},"author":1,"featured_media":8439,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[5],"tags":[129,21],"class_list":["post-8312","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-mint","tag-linux-mint-20","tag-ssh"],"_links":{"self":[{"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/posts\/8312","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/comments?post=8312"}],"version-history":[{"count":0,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/posts\/8312\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/media\/8439"}],"wp:attachment":[{"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/media?parent=8312"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/categories?post=8312"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/tags?post=8312"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}