Best 2 Know

The Ultimate Blogging Resource

  • Advertising
  • WebHosting
  • Contact Us
  • Blogger
    • Blogger Templates
    • Blogger Tutorials
  • Browser
    • Firefox
    • Google Chrome
  • Google
  • Internet
    • Facebook
    • Twitter
  • Thesis
  • Windows
  • WordPress
    • WordPress Themes
    • WordPress Plugins
  • More
    • Linux
    • Review
    • Solutions
    • Announcements

How to Change Default SSH Port

SSH is mainly used in Linux Operating Systems , SSH is used to connect a PC at a Remote location with Secure connection and using SSH you can use that PC like a Remote Control. Like Controlling your Server (VPS or Dedicated with having root access).

Secure Shell or SSH is a network protocol that allows data to be exchanged using a secure channel between two networked devices. The two major versions of the protocol are referred to as SSH1 or SSH-1 and SSH2 or SSH-2. Used primarily on Linux and Unix based systems to access shell accounts, SSH was designed as a replacement for Telnet and other insecure remote shells, which send information, notably passwords, in plaintext, rendering them susceptible to packet analysis.The encryption used by SSH is intended to provide confidentiality and integrity of data over an unsecured network, such as the Internet.

(Source Wikipedia)

The Default port for the SSH user is 22. But we can change the default port to some other port (its Good for Security). for example if i wanted to run ssh at port 1090 instead of 22.

Edit the Following File for changing the default port of SSH :

/etc/ssh/ssh_config

/etc/ssh/ssh_config

if you are changing it for your server using PuTTy or any other similar tool then use following command :

vi /etc/ssh/ssh_config

vi /etc/ssh/ssh_config

Their you can find for Some text like :

#   Port 22

# Port 22

or

   Port 22

Port 22

Just change the 22 to the port you wanted to change for me it will be then

Port 1090

Port 1090

and if your file is having Port commented then uncomment it by removing # before the Port
and Save it

Now you have Successfully change the Default SSH Port

Note : You can Run SSH on any port but make sure that no other Service is using that port

You can Get PuTTy Here

Hope you like it.

Subscribe via Email

Share this:

  • Click to share on X (Opens in new window) X
  • Click to share on Facebook (Opens in new window) Facebook
  • Click to share on Pocket (Opens in new window) Pocket
  • Click to print (Opens in new window) Print
  • Click to share on WhatsApp (Opens in new window) WhatsApp
  • Click to email a link to a friend (Opens in new window) Email

Related

February 24, 2011 Ritesh Sanap Linux Default SSH Port, linux, Remote Location, Secure connection, security, SSH, SSH Port

Comments

  1. Ritesh Sanap says

    November 4, 2015 at 4:29 pm

    Save file by pressing esc and after that typing :w and press enter

    Reply

Leave a ReplyCancel reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Post navigation

Previous Previous post: How to Free Some Disk Space in Linux
Next Next post: How to Check the Time of the Executed Command

Currently Trending

  • How to download Specific parts of YouTube videos
    How to download Specific parts of YouTube videos
  • Windows Vista CD key
    Windows Vista CD key
  • How to retrieve my Demonoid username
    How to retrieve my Demonoid username
  • How to add Logo to Thesis theme
    How to add Logo to Thesis theme
  • How to Delete Feedbacks from JetPack Contact Form
    How to Delete Feedbacks from JetPack Contact Form
  • List Of All 255 Keyboard All Alt Key Codes
    List Of All 255 Keyboard All Alt Key Codes
  • h4x0r ( Hacker ) - Blogger Template
    h4x0r ( Hacker ) - Blogger Template

Get Latest post in your Inbox

Random Posts

Some Keyboard Keys not Working – What to Do ?

July 18, 2008 By Ritesh Sanap Leave a Comment

How to add Author Box below post in thesis

April 16, 2011 By Ritesh Sanap 6 Comments

Format HDD with Notepad

July 7, 2008 By Ritesh Sanap Leave a Comment

How to create Archives page in WordPress

October 16, 2010 By Ritesh Sanap Leave a Comment

Wood is Good – Blogger Template

June 16, 2010 By Ritesh Sanap Leave a Comment

WordPress

HTTP2 Server Push for W3 Total Cache Minify plugin

August 17, 2016 By Ritesh Sanap 5 Comments

How to Disable Emojis in WordPress

January 6, 2016 By Ritesh Sanap Leave a Comment

JetPack Related posts and Sharing not working with NGINX

November 10, 2015 By Ritesh Sanap Leave a Comment

Simply Pure – WordPress Theme

November 2, 2014 By Ritesh Sanap 2 Comments

Advanced What should we Write about next? – WordPress Plugin

July 28, 2014 By Ritesh Sanap Leave a Comment

How to Disable Self Pingback or TrackBack

January 16, 2014 By Ritesh Sanap Leave a Comment

BlueStrap – WordPress Theme

January 1, 2014 By Ritesh Sanap 15 Comments

How to Create Multiple Excerpts in WordPress

December 24, 2013 By Ritesh Sanap Leave a Comment

How to Disable Auto Update in WordPress

November 21, 2013 By Ritesh Sanap Leave a Comment

How to Delete Feedbacks from JetPack Contact Form

November 19, 2013 By Ritesh Sanap 9 Comments

Recent Posts

  • HTTP2 Server Push for W3 Total Cache Minify plugin
  • How to show hidden files and folders in Mac OS X
  • How to Disable Emojis in WordPress
  • Canva – Online Photo Editor
  • JetPack Related posts and Sharing not working with NGINX

Archives

Recommends

  • DigitalOcean – Cloud Hosting
  • Dropbox – Cloud Storage
  • Elegant Themes – WordPress Themes
  • LastPass – Password Manager
  • Like us on Facebook
  • Follow on Twitter
  • +1 on Google
  • Subscribe via Email
  • RSS Feed

© 2025 Best 2 Know · All Rights Reserved · We ♥ DigitalOcean