1. Edit sources list
Open:
bashCopyEditnano /etc/apt/sources.list
Replace its contents with:
bashCopyEditdeb http://deb.debian.org/debian bookworm main contrib non-free non-free-firmware
deb http://deb.debian.org/debian-security/ bookworm-security main contrib non-free non-free-firmware
deb http://deb.debian.org/debian bookworm-updates main contrib non-free non-free-firmware
2. Update package index
bashCopyEditapt update
3. Install SSH server
bashCopyEditapt install openssh-server -y
systemctl enable ssh
systemctl start ssh