{"id":2536,"date":"2018-02-04T11:48:14","date_gmt":"2018-02-04T11:48:14","guid":{"rendered":"http:\/\/www.theperfectarts.com\/?p=2536"},"modified":"2020-06-01T05:43:10","modified_gmt":"2020-06-01T05:43:10","slug":"command-to-check-open-ports-on-server","status":"publish","type":"post","link":"https:\/\/www.ktchost.com\/blog\/command-to-check-open-ports-on-server\/","title":{"rendered":"Command to check open ports on server"},"content":{"rendered":"<p>Its always good to know open ports on the server to secure the server from the hackers, refer to the following steps to check the open ports on the server.<\/p>\n<p>Login in to the server as a root user and run the command.<\/p>\n<blockquote><p><strong>nmap -sT -O localhost<\/strong><\/p><\/blockquote>\n<p>Some time above command throws the following error message because\u00a0nmap is not installed on the server.<\/p>\n<p>We can install the nmap command by using the yum.<\/p>\n<blockquote><p><strong>yum install nmap* -y<\/strong><\/p><\/blockquote>\n<p>Now the run the following command again.<\/p>\n<blockquote><p><strong>nmap -sT -O localhost<\/strong><\/p><\/blockquote>\n<p>It will show you all the open ports on the server<\/p>\n","protected":false},"excerpt":{"rendered":"<div class=\"mh-excerpt\"><p>Its always good to know open ports on the server to secure the server from the hackers, refer to the following steps to check the <a class=\"mh-excerpt-more\" href=\"https:\/\/www.ktchost.com\/blog\/command-to-check-open-ports-on-server\/\" title=\"Command to check open ports on server\">[&#8230;]<\/a><\/p>\n<\/div>","protected":false},"author":1,"featured_media":6678,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[39,43,44],"tags":[],"class_list":["post-2536","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-centos-server","category-commands","category-linux"],"_links":{"self":[{"href":"https:\/\/www.ktchost.com\/blog\/wp-json\/wp\/v2\/posts\/2536"}],"collection":[{"href":"https:\/\/www.ktchost.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.ktchost.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.ktchost.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.ktchost.com\/blog\/wp-json\/wp\/v2\/comments?post=2536"}],"version-history":[{"count":10,"href":"https:\/\/www.ktchost.com\/blog\/wp-json\/wp\/v2\/posts\/2536\/revisions"}],"predecessor-version":[{"id":6679,"href":"https:\/\/www.ktchost.com\/blog\/wp-json\/wp\/v2\/posts\/2536\/revisions\/6679"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.ktchost.com\/blog\/wp-json\/wp\/v2\/media\/6678"}],"wp:attachment":[{"href":"https:\/\/www.ktchost.com\/blog\/wp-json\/wp\/v2\/media?parent=2536"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.ktchost.com\/blog\/wp-json\/wp\/v2\/categories?post=2536"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.ktchost.com\/blog\/wp-json\/wp\/v2\/tags?post=2536"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}