> ## Content Index
> Fetch the complete content index at: https://blog.lange-it.com/llms.txt
> Use this file to discover other available public pages before exploring further.

# SSHd | Ubuntu 22.10 und später
- URL: https://blog.lange-it.com/sshd-ubuntu-22-10-und-spater/
- Published: 2025-10-29T12:12:16.000Z
- Updated: 2025-10-29T12:22:34.000Z
- Author: Peter Lange
- Tags: Ubuntu, SSH

## Alternativer Port

Der SSHd service wurde bis dato immer in der sshd\_conf datei mit dem Flag 

```bash
Port 4711
```

konfiguriert.

Nachdem ihr eine neuere Version als Ubuntu 22.10 installiert habt, wirst du feststellen, dass der Dienst - trotzt änderung in der sshd\_config Datei - nur auf Port 22 läuft.

Hintergrund ist die Änderung auf socket basierte aktivierung.

### Lösung zum alten Weg:

```bash
sudo systemctl disable --now ssh.socket
sudo systemctl enable --now ssh.service
# check the status of the service
sudo systemctl status ssh
```

Disable ssh-socket service and enable the new ssh-service

### Lösung für den socket-basierten Weg:

```bash
sudo systemctl edit ssh.socket
# change these rows to your need
ListenStream=
ListenStream=[::]:4711
ListenStream=0.0.0.0:4711
# save and close
sudo systemctl daemon-reload
sudo systemctl restart ssh.socket
# check the status of the service
sudo systemctl status ssh

```