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

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,…

3 weeks 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…

2 months ago

Redis Explained: A Beginner’s Guide to an Effective Data Storage System

Redis (Remote Dictionary Server) is an open-source, in-memory data structure store used as a database,…

3 months ago

Apache HTTP Server: A Complete Guide for Installation, Usage and Updates for Linux and Windows

The Apache HTTP Server, commonly referred to as Apache, is one of the world’s most…

5 months ago

NGINX: High-Performance Web Server and Reverse Proxy (Advanced Guide)

In our previous article on NGINX, we explored the basics —what it is, where to…

8 months ago

NGINX: High-performance Web Server and Reverse Proxy

NGINX has become one of the most popular web servers in the world, widely praised…

9 months ago

This website uses cookies.