Dino Geek, try to help you

How to change the SSH port?


To change the SSH port on a Linux system, follow these steps:

1. Log in to your Linux machine as root or with root privileges.

1. Open the main SSH configuration file `/etc/ssh/sshd_config` in your text editor.

1. Locate the line that says `#Port 22` and remove the `#` symbol to make the line active.

1. Change the default port ‘22’ to a different port number of your choice. For example, `Port 2222`.

1. Save the file and exit your text editor.

1. Restart the SSH service. Enter the command: `systemctl restart sshd`

Note: If you are using a Firewall, make sure to update the rules to allow the new SSH port through the firewall as well.


Simply generate articles to optimize your SEO
Simply generate articles to optimize your SEO





DinoGeek offers simple articles on complex technologies

Would you like to be quoted in this article? It's very simple, contact us at dino@eiki.fr

CSS | NodeJS | DNS | DMARC | MAPI | NNTP | htaccess | PHP | HTTPS | Drupal | WEB3 | LLM | Wordpress | TLD | Domain name | IMAP | TCP | NFT | MariaDB | FTP | Zigbee | NMAP | SNMP | SEO | E-Mail | LXC | HTTP | MangoDB | SFTP | RAG | SSH | HTML | ChatGPT API | OSPF | JavaScript | Docker | OpenVZ | ChatGPT | VPS | ZIMBRA | SPF | UDP | Joomla | IPV6 | BGP | Django | Reactjs | DKIM | VMWare | RSYNC | Python | TFTP | Webdav | FAAS | Apache | IPV4 | LDAP | POP3 | SMTP

| Whispers of love (API) | Déclaration d'Amour |






Legal Notice / General Conditions of Use