{"id":2192,"date":"2017-12-07T12:56:52","date_gmt":"2017-12-07T12:56:52","guid":{"rendered":"http:\/\/www.scmgalaxy.com\/tutorials\/?p=2192"},"modified":"2020-01-09T09:45:38","modified_gmt":"2020-01-09T09:45:38","slug":"changing-port-of-ftp-and-ssh","status":"publish","type":"post","link":"https:\/\/www.devopsschool.com\/blog\/changing-port-of-ftp-and-ssh\/","title":{"rendered":"Changing port of ftp and ssh"},"content":{"rendered":"<p><strong>rajeshkumar created the topic: Changing port of ftp and ssh<\/strong><br \/>\nChanging port of ftp and ssh<br \/>\nTo Change the port of ssh, edit the file \/etc\/ssh\/sshd_config and add the following line:<\/p>\n<p>port 222<\/p>\n<p>Restart the services of ssh to make the changes effective. Now you need to specify the port number using option &#8216;-p&#8217; whenever you want to access this system.<\/p>\n<p># ssh localhost -p 22<\/p>\n<p>In order to change the port of ftp server, edit the file \/etc\/vsftpd\/vsftpd.conf<\/p>\n<p>listen_port=2100 # # Add thus line<\/p>\n<p>Restart the service of ftp<\/p>\n<p>Now run the following command to check if the listening ports have been changed or not;<\/p>\n<p>ftp localhost 2100<\/p>\n<p>you can even check the open port using the netstat or nmap commands..<br \/>\nRegards,<br \/>\nRajesh Kumar<br \/>\nTwitt me @ <a href=\"http:\/\/twitter.com\/RajeshKumarIn\" target=\"_blank\" rel=\"noopener\">twitter.com\/RajeshKumarIn<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>rajeshkumar created the topic: Changing port of ftp and ssh Changing port of ftp and ssh To Change the port of ssh, edit the file \/etc\/ssh\/sshd_config and add the following&#8230; <\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_joinchat":[],"footnotes":""},"categories":[454],"tags":[456],"class_list":["post-2192","post","type-post","status-publish","format-standard","hentry","category-shell-script","tag-port"],"_links":{"self":[{"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/posts\/2192","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/comments?post=2192"}],"version-history":[{"count":1,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/posts\/2192\/revisions"}],"predecessor-version":[{"id":2193,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/posts\/2192\/revisions\/2193"}],"wp:attachment":[{"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/media?parent=2192"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/categories?post=2192"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/tags?post=2192"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}