Categories: Linux Administration

How Do I Change the SSH Port on my Server?

To Change the SSH Port for Your Linux Server

  1. Connect to your server via SSH
  2. Switch to the root user
  3. Run the following command:vi /etc/ssh/sshd_config
  4. Locate the following line:# Port 22
  5. Remove # and change 22 to your desired port number.
  6. Restart the sshd service by running the following command: service sshd restart

serverhub

Recent Posts

A Beginner’s Guide on How to Migrate From Cloud to Dedicated Server Without Downtime

Amazon Web Services (AWS) is a cloud platform widely used by businesses to host websites,…

2 days ago

A Comprehensive Migrate WordPress to VPS Guide for Beginners

A live WordPress (WP) website is an active website that is already accessible to visitors,…

4 weeks ago

Puppet Software: Explained: A Beginner’s Guide to Configuration Management and Setup

As IT environments grow, managing hundreds or even thousands of systems manually become difficult and…

2 months ago

A Beginner’s Guide to Building a Network Monitoring System for Windows and Linux Systems

In this article, we'll discuss the purpose of a network monitoring system, its relationship with…

3 months ago

Elasticsearch Software: A User-Friendly Guide to Features, Use Cases and Installation Across Platforms

A distributed search and analytics engine (e.g., Elasticsearch Software) is a system designed to store,…

4 months ago

Grafana Explained: Installation, Setup, and Dashboard Guide for Linux, Windows and macOS

Grafana is an open-source analytics and monitoring platform designed to visualize time-series data through interactive…

5 months ago

This website uses cookies.