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

Microsoft IIS Installation & Troubleshooting Guide for Windows-Based Web Servers

When it comes to deploying web applications on a Windows-based system, Microsoft Internet Information Services…

1 day ago

PostgreSQL Deep Dive: Tools, Cloud, Performance, and Architectures

PostgreSQL (often called Postgres) is a powerful, open-source relational database management system (RDBMS) renowned for…

2 weeks ago

Introduction to PostgreSQL: Advanced Open-source Database

PostgreSQL is a robust, open-source object-relational database management system (ORDBMS), commonly referred to as Postgres.…

1 month ago

Introduction: What is Apache Hadoop?

What is Hadoop? Apache Hadoop is an open-source software framework designed for distributed storage and…

2 months ago

A Comprehensive Guide to Microsoft SQL Server

What is Microsoft SQL Server? Microsoft SQL Server is a relational database management system (RDBMS)…

2 months ago

Prometheus: Powerful Open-Source Monitoring & Alerting Toolkit

Welcome to the wild world of Prometheus monitoring! If you've ever wondered how to make…

3 months ago

This website uses cookies.