Partlix Host
  • 👋Welcome To Partlix Docs
  • 🪟Windows Server
    • Change RDP Port
    • Change Language
    • Disable UDP for RDP
    • Open Ports (Port Forwarding)
    • How to use WireShark
    • Install MariaDB
    • Install FiveM Server
    • External FTP Access
  • 🐧Linux Server
    • SFTP Connection
    • Generate SSH Key
    • Change SSH Port
    • Link SSH to Visual Studio Code
    • Install xRDP
    • Install Docker
    • Install OpenVPN
    • Install FTP Server
    • Install FiveM Server
    • Install MySQL & Phpmyadmin
  • Game Servers
    • External Pma-Voice (FiveM)
    • External Mumble VoiP (FiveM)
    • Convars Definitions (FiveM)
    • Convars Definitions (txAdmin)
Powered by GitBook
On this page
  1. Linux Server

Change SSH Port

PreviousGenerate SSH KeyNextLink SSH to Visual Studio Code

First, Open SSH Configuration File (sshd) :

sudo nano /etc/ssh/sshd_config

Find the line that reads #Port 22. Next, eplace it with New Port :

To:

Second, Save File Modification Press Ctrl + O and Enter After Press Ctrl + X

Next, restart the SSH service using the following command:

Debian and Ubuntu:

sudo service ssh restart

Debian and Ubuntu with systemd:

sudo systemctl restart ssh

CentOS and Fedora

sudo service sshd restart

CentOS and Fedora with systems:

sudo systemctl restart sshd
🐧
Default SSH Port
New SSH Port