You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When trying to enable ssh server by settings -> System -> Secure Shell. It fails to start the service.
host-shell systemctl status ssh.service
× ssh.service - OpenBSD Secure Shell server
Loaded: loaded (/usr/lib/systemd/system/ssh.service; enabled; preset: enabled)
Active: failed (Result: exit-code) since Wed 2024-12-18 23:09:24 CET; 14min ago
Invocation: 47d7218df2944d6694258e63e65fcfdf
Docs: man:sshd(8)
man:sshd_config(5)
Process: 16178 ExecStartPre=/usr/sbin/sshd -t (code=exited, status=1/FAILURE)
dec 18 23:09:24 master systemd[1]: ssh.service: Scheduled restart job, restart counter is at 5.
dec 18 23:09:24 master systemd[1]: ssh.service: Start request repeated too quickly.
dec 18 23:09:24 master systemd[1]: ssh.service: Failed with result 'exit-code'.
dec 18 23:09:24 master systemd[1]: Failed to start ssh.service - OpenBSD Secure Shell server.
I remember that I tried some old way to get ssh server running before I found the setting in system. I guess that what ever I did broke something. Unfortunately I now can't remember what I did.
Steps to Reproduce
try to enable ssh server.
settings -> System -> Secure Shell
Found this with host-shell journalctl -xeu ssh.service:
dec 20 20:37:16 master systemd[1]: Starting ssh.service - OpenBSD Secure Shell server...
Subject: A start job for unit ssh.service has begun execution
Defined-By: systemd
Support: https://www.debian.org/support
A start job for unit ssh.service has begun execution.
The job identifier is 5480.
dec 20 20:37:16 master sshd[58763]: sshd: no hostkeys available -- exiting.
dec 20 20:37:16 master systemd[1]: ssh.service: Control process exited, code=exited, status=1/FAILURE
sshd: no hostkeys available -- exiting.
How do I create host keys?
host-shell ssh-keygen -A
ssh-keygen: generating new host keys: RSA Could not save your private key in /etc/ssh/ssh_host_rsa_key.FxrKuXM0KG: Permission denied
ssh-keygen: generating new host keys: ECDSA Could not save your private key in /etc/ssh/ssh_host_ecdsa_key.ClZdRBxtJc: Permission denied
ssh-keygen: generating new host keys: ED25519 Could not save your private key in /etc/ssh/ssh_host_ed25519_key.GSimiHP8sv: Permission denied
Issue Description
When trying to enable ssh server by settings -> System -> Secure Shell. It fails to start the service.
I remember that I tried some old way to get ssh server running before I found the setting in system. I guess that what ever I did broke something. Unfortunately I now can't remember what I did.
Steps to Reproduce
try to enable ssh server.
settings -> System -> Secure Shell
On what version of Vanilla OS this happens?
Vanilla OS 2 Orchid
Additional Information
The text was updated successfully, but these errors were encountered: