SSH Custom Port

Port ändern:

nano /etc/ssh/sshd_config

Ändere:

Port 1234

UFW anpassen:

ufw allow 1234/tcp
ufw delete 22/tcp
ufw reload

SSH reload

systemctl reload sshd

Lokale SSH Config anpassen:

nano /.ssh/config
Host Hetzner
  Hostname 1.2.3.4
  User root
  IdentityFile ~/.ssh/Hetznerkey
  Port 1234

Revision #1
Created 2025-12-06 12:18:06 UTC by Denode
Updated 2025-12-06 12:18:06 UTC by Denode