{"id":30215,"date":"2021-01-18T03:40:55","date_gmt":"2021-01-17T19:40:55","guid":{"rendered":"https:\/\/web.mwwsb.com.my\/pjci\/?post_type=kb&#038;p=30215"},"modified":"2022-09-07T19:55:03","modified_gmt":"2022-09-07T11:55:03","slug":"how-to-change-ssh-port","status":"publish","type":"kb","link":"https:\/\/www.casbay.com\/guide\/kb\/how-to-change-ssh-port","title":{"rendered":"HOW TO: Change SSH Port"},"content":{"rendered":"\t\t<div data-elementor-type=\"wp-post\" data-elementor-id=\"30215\" class=\"elementor elementor-30215\" data-elementor-post-type=\"kb\">\n\t\t\t\t\t\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-3a820d2 elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"3a820d2\" data-element_type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-002e17a\" data-id=\"002e17a\" data-element_type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t\t\t<div class=\"elementor-element elementor-element-1bfaafb elementor-widget elementor-widget-heading\" data-id=\"1bfaafb\" data-element_type=\"widget\" data-widget_type=\"heading.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t<h2 class=\"elementor-heading-title elementor-size-default\">HOW TO: Change SSH Port<\/h2>\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-278014d elementor-widget elementor-widget-image\" data-id=\"278014d\" data-element_type=\"widget\" data-widget_type=\"image.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<img decoding=\"async\" src=\"https:\/\/casbay.com\/guide\/wp-content\/uploads\/2021\/02\/ssh-big.png\" title=\"\" alt=\"\" loading=\"lazy\" \/>\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-de5c1e6 elementor-widget elementor-widget-text-editor\" data-id=\"de5c1e6\" data-element_type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t<p>To change the SSH Port, please follow the full instructions below:<\/p>\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-379e0dc elementor-widget elementor-widget-text-editor\" data-id=\"379e0dc\" data-element_type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t<p>Firstly, open the file <em>\/etc\/ssh\/sshd_config<\/em> with your favourite text editor. For example:<\/p><pre><strong>nano \/etc\/ssh\/sshd_config\n<\/strong><\/pre><p>Then, find the string which defines the port and edit it:<\/p><pre><strong># What ports, IPs and protocols we listen for\nPort 22\n<\/strong><\/pre><p>Now restart sshd service:<\/p><pre><strong>service sshd restart\n<\/strong><\/pre><p>Make sure you have a new ssh port opened in your firewall.<\/p><p>Still having issue to change it? Do\u00a0<a href=\"https:\/\/www.casbay.com\/contact\/\" data-wpel-link=\"internal\">contact our Support Team<\/a>\u00a0.<\/p>\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-6bcde4e elementor-widget elementor-widget-heading\" data-id=\"6bcde4e\" data-element_type=\"widget\" data-widget_type=\"heading.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t<h2 class=\"elementor-heading-title elementor-size-large\">What is SSH?<\/h2>\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-d71bf2a elementor-widget elementor-widget-text-editor\" data-id=\"d71bf2a\" data-element_type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t<p class=\"p\"><a href=\"http:\/\/en.wikipedia.org\/wiki\/Secure_Shell\" target=\"_self\" rel=\"noopener\">SSH<\/a> or Secure Shell is a network communication protocol. SSH enables two computers to communicate (c.f <a href=\"http:\/\/en.wikipedia.org\/wiki\/Hypertext_Transfer_Protocol\" target=\"_self\" rel=\"noopener\">http<\/a> or hypertext transfer protocol. The protocol is able to transfer hypertext such as web pages) and share data. An inherent feature of ssh is that the communication between the two computers is encrypted. This means that it is suitable for use on insecure networks.<\/p><p class=\"p\">Do you know? SSH is often used to &#8220;login&#8221; and perform operations on remote computers. It may also be used for transferring data.<\/p>\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-0f118f5 elementor-widget elementor-widget-heading\" data-id=\"0f118f5\" data-element_type=\"widget\" data-widget_type=\"heading.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t<h2 class=\"elementor-heading-title elementor-size-medium\">How To Use It?<\/h2>\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-305ca92 elementor-widget elementor-widget-text-editor\" data-id=\"305ca92\" data-element_type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t<p class=\"p\">You use a program on your computer (ssh client), to connect to our service (server). Besides, the program allows you to transfer the data to\/from our storage using either a graphical user interface or command line. There are many programs available that enable you to perform this transfer and some operating systems such as Mac OS X and Linux. These OS have this capability built in.<\/p><p class=\"p\">Furthermore, SH clients will typically support SCP (<a href=\"http:\/\/en.wikipedia.org\/wiki\/Secure_copy\" target=\"_self\" rel=\"noopener\">Secure Copy<\/a>) and\/or SFTP (<a href=\"http:\/\/en.wikipedia.org\/wiki\/SSH_File_Transfer_Protocol\" target=\"_self\" rel=\"noopener\">SSH File Transfer Protocol<\/a>) for transferring data. We tend to recommend using SFTP instead of SCP but both will work with our service.<\/p>\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t\t\t\t<\/div>\n\t\t","protected":false},"excerpt":{"rendered":"<p>HOW TO: Change SSH Port To change the SSH Port, please follow the full instructions below: Firstly, open the file \/etc\/ssh\/sshd_config with your favourite text editor. For example: nano \/etc\/ssh\/sshd_config Then, find the string which defines the port and edit it: # What ports, IPs and protocols we listen for Port 22 Now restart sshd [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"site-sidebar-layout":"no-sidebar","site-content-layout":"page-builder","ast-site-content-layout":"","site-content-style":"default","site-sidebar-style":"default","ast-global-header-display":"","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"disabled","ast-breadcrumbs-content":"","ast-featured-img":"disabled","footer-sml-layout":"","theme-transparent-header-meta":"default","adv-header-id-meta":"","stick-header-meta":"default","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","astra-migrate-meta-layouts":"default","ast-page-background-enabled":"default","ast-page-background-meta":{"desktop":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-gradient":""},"tablet":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-gradient":""},"mobile":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-gradient":""}},"ast-content-background-meta":{"desktop":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-gradient":""},"tablet":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-gradient":""},"mobile":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-gradient":""}}},"kbtopic":[110],"kbtag":[106,105],"mkb_version":[],"_links":{"self":[{"href":"https:\/\/www.casbay.com\/guide\/wp-json\/wp\/v2\/kb\/30215"}],"collection":[{"href":"https:\/\/www.casbay.com\/guide\/wp-json\/wp\/v2\/kb"}],"about":[{"href":"https:\/\/www.casbay.com\/guide\/wp-json\/wp\/v2\/types\/kb"}],"author":[{"embeddable":true,"href":"https:\/\/www.casbay.com\/guide\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.casbay.com\/guide\/wp-json\/wp\/v2\/comments?post=30215"}],"version-history":[{"count":7,"href":"https:\/\/www.casbay.com\/guide\/wp-json\/wp\/v2\/kb\/30215\/revisions"}],"predecessor-version":[{"id":37826,"href":"https:\/\/www.casbay.com\/guide\/wp-json\/wp\/v2\/kb\/30215\/revisions\/37826"}],"wp:attachment":[{"href":"https:\/\/www.casbay.com\/guide\/wp-json\/wp\/v2\/media?parent=30215"}],"wp:term":[{"taxonomy":"kbtopic","embeddable":true,"href":"https:\/\/www.casbay.com\/guide\/wp-json\/wp\/v2\/kbtopic?post=30215"},{"taxonomy":"kbtag","embeddable":true,"href":"https:\/\/www.casbay.com\/guide\/wp-json\/wp\/v2\/kbtag?post=30215"},{"taxonomy":"mkb_version","embeddable":true,"href":"https:\/\/www.casbay.com\/guide\/wp-json\/wp\/v2\/mkb_version?post=30215"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}