{"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&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
\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\tTo 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
Firstly, open the file \/etc\/ssh\/sshd_config<\/em> with your favourite text editor. For example:<\/p> Then, find the string which defines the port and edit it:<\/p> Now restart sshd service:<\/p> Make sure you have a new ssh port opened in your firewall.<\/p> Still having issue to change it? Do\u00a0contact our Support Team<\/a>\u00a0.<\/p>\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t SSH<\/a> or Secure Shell is a network communication protocol. SSH enables two computers to communicate (c.f 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> Do you know? SSH is often used to “login” 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 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> Furthermore, SH clients will typically support SCP (Secure Copy<\/a>) and\/or SFTP (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":" 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 […]<\/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}]}}nano \/etc\/ssh\/sshd_config\n<\/strong><\/pre>
# What ports, IPs and protocols we listen for\nPort 22\n<\/strong><\/pre>
service sshd restart\n<\/strong><\/pre>
What is SSH?<\/h2>\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t
How To Use It?<\/h2>\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t