How to Change the SSH Server Port Number - Knowledge base - ScalaHosting (2024)

The default SSH port for all servers is 22. Once you get administrative control over your server, it is recommended that you change the default port for security reasons. Bear in mind, however, that to do it, you will need root access.

To change the default port:

  • Step 1. Use SSH to connect to your server and log in as root.
  • Step 2. Open the sshd_config file using a text editor. This file is located in the “/etc/ssh” folder.
  • Step 3. Identify the line specifying “Port 22” and change it to the port number you wish to use.
  • Step 4. Save changes when exiting the file editor.
  • Step 5. Restart the SSH service using the following commands

For CentOS/Fedora: “service sshd restart”

For Debian/Ubuntu: “service ssh restart”

Note: Do not close your SSH session window before testing if the new setting works. First, test the configuration by opening a new terminal window and attempting to log in with the new port.

Was this helpful?

What’s your goal today?

1. Find the right Web hosting solution

If you’re looking for industry-leading speed, ease of use and reliability Try ScalaHosting with an unconditional money-back guarantee.

2. Make your website lighting fast

We guarantee to make your WordPress site load in less than 2 seconds on a managed VPS with ScalaHosting or give your money back. Fill out the form, and we’ll be in touch.

3. Streamline your clients’ hosting experience

If you’re a web studio or development agency hosting more than 30 websites, schedule a call with Vlad, our co-founder and CTO, and see how we can deliver unmatched value to both your business and your clients.

How to Change the SSH Server Port Number - Knowledge base - ScalaHosting (1)

Need a custom cluster or professional advice?

Book a meeting and get a free 30-minute consultation with Vlad, co-founder & CTO of Scala Hosting, who will help you select, design and build the right solution - from a single data center cluster to a multi-region & multi-datacenter high availability cluster with hundreds of servers.

Book a free consultation

4. Learn how to grow your website in 2024

An all-star team of SEO and web influencers are sharing their secret knowledge for the first time in years. Learn about the future of SEO, Web Design best practices and the secrets to getting the foundation for your website to thrive. Watch the exclusive webinar.

An Exclusive Insiders Look Behind The SEO and Web Development Curtain

How to Change the SSH Server Port Number - Knowledge base - ScalaHosting (2)

Rado

Author

Working in the web hosting industry for over 13 years, Rado has inevitably got some insight into the industry. A digital marketer by education, Rado is always putting himself in the client's shoes, trying to see what's best for THEM first. A man of the fine detail, you can often find him spending 10+ minutes wondering over a missing comma or slightly skewed design.

How to Change the SSH Server Port Number - Knowledge base - ScalaHosting (2024)
Top Articles
CONVERTING DECIMAL TO HEXADECIMAL
How did the Tax Cuts and Jobs Act change personal taxes?
Maxtrack Live
Rubratings Tampa
Overton Funeral Home Waterloo Iowa
Froedtert Billing Phone Number
Is pickleball Betts' next conquest? 'That's my jam'
Fototour verlassener Fliegerhorst Schönwald [Lost Place Brandenburg]
House Share: What we learned living with strangers
Espn Expert Picks Week 2
World of White Sturgeon Caviar: Origins, Taste & Culinary Uses
Clairememory Scam
Newgate Honda
1Win - инновационное онлайн-казино и букмекерская контора
Aces Fmc Charting
Athens Bucket List: 20 Best Things to Do in Athens, Greece
O'reilly's Auto Parts Closest To My Location
Magicseaweed Capitola
The Superhuman Guide to Twitter Advanced Search: 23 Hidden Ways to Use Advanced Search for Marketing and Sales
Niche Crime Rate
Golden Abyss - Chapter 5 - Lunar_Angel
SF bay area cars & trucks "chevrolet 50" - craigslist
Halo Worth Animal Jam
Gayla Glenn Harris County Texas Update
Isaidup
Panolian Batesville Ms Obituaries 2022
Routing Number For Radiant Credit Union
About My Father Showtimes Near Copper Creek 9
Barista Breast Expansion
13301 South Orange Blossom Trail
LG UN90 65" 4K Smart UHD TV - 65UN9000AUJ | LG CA
Willys Pickup For Sale Craigslist
Autotrader Bmw X5
Labyrinth enchantment | PoE Wiki
Nearest Ups Office To Me
Busted Newspaper Campbell County KY Arrests
Shane Gillis’s Fall and Rise
The best bagels in NYC, according to a New Yorker
Janaki Kalaganaledu Serial Today Episode Written Update
Unlock The Secrets Of "Skip The Game" Greensboro North Carolina
Sherwin Source Intranet
Displacer Cub – 5th Edition SRD
Aznchikz
Underground Weather Tropical
Nurses May Be Entitled to Overtime Despite Yearly Salary
Barber Gym Quantico Hours
Craigslist Pet Phoenix
Home | General Store and Gas Station | Cressman's General Store | California
Unbiased Thrive Cat Food Review In 2024 - Cats.com
Latest Posts
Article information

Author: Delena Feil

Last Updated:

Views: 6617

Rating: 4.4 / 5 (65 voted)

Reviews: 88% of readers found this page helpful

Author information

Name: Delena Feil

Birthday: 1998-08-29

Address: 747 Lubowitz Run, Sidmouth, HI 90646-5543

Phone: +99513241752844

Job: Design Supervisor

Hobby: Digital arts, Lacemaking, Air sports, Running, Scouting, Shooting, Puzzles

Introduction: My name is Delena Feil, I am a clean, splendid, calm, fancy, jolly, bright, faithful person who loves writing and wants to share my knowledge and understanding with you.