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:

  • Twitter
  • Facebook
  • Pocket
  • Print
  • WhatsApp
  • 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 Reply Cancel 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
  • You might also like this Widget for blogger or Related post widget
  • h4x0r ( Hacker ) - Blogger Template
  • Free Online Angry Birds game
  • How to Detect Safari Browser on iOS
  • Shortcut keys to Complete URL
  • List Of All 255 Keyboard All Alt Key Codes
  • Google Voice invites for students
  • Random Post Widget for Blogger
  • How to add a bookmarking widget below Post Title

Get Latest post in your Inbox

Random Posts

Hack windows xp passwords: For FAT32 System

February 28, 2009 By Ritesh Sanap 1 Comment

How to Rename the Recycle Bin

February 29, 2008 By Ritesh Sanap Leave a Comment

All Latest Window’s XP Tip’s & Trick’s

December 28, 2007 By Ritesh Sanap Leave a Comment

Top 5 free online Gaming Sites

January 16, 2014 By Ritesh Sanap Leave a Comment

Creating custom couter strikes 1.6 sprays

January 16, 2008 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

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