Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ssh server fail to start. #240

Open
ntaken opened this issue Dec 18, 2024 · 1 comment
Open

ssh server fail to start. #240

ntaken opened this issue Dec 18, 2024 · 1 comment
Labels
bug Something isn't working triage

Comments

@ntaken
Copy link

ntaken commented Dec 18, 2024

Issue Description

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

On what version of Vanilla OS this happens?

Vanilla OS 2 Orchid

Additional Information

magnus@apx-vso-pico:~$ abroot  status
ABRoot Partitioner:
 • Nuvarande: vos-b ✓
 • Framtida: vos-a

Laddad konfiguration: /etc/abroot/abroot.json

Enhetsspecifikationer:
 • CPU: AMD Ryzen 7 7800X3D 8-Core Processor
 • GPU: [Advanced Micro Devices, Inc. [AMD/ATI] Navi 31 [Radeon RX 7900 XT/7900 XTX/7900 GRE/7900M] (rev c8) Advanced Micro Devices, Inc. [AMD/ATI] Raphael (rev cb)]
 • Minne: 63436 MB

ABAvbild:
 • Sammanfattning: sha256:48b5404acd477a0b3d648362eeb0a989d8bb505d9d28ce64456cdb14e3f5f0d6
 • Tidsstämpel: 2024-12-18 21:23:40
 • Avbild: ghcr.io/vanilla-os/desktop:main

Kärnargument: quiet splash bgrt_disable $vt_handoff

Paket:
 • Tillagd: 
 • Borttagen: 
 • Unscensatt: 

Paketavtal: true
magnus@apx-vso-pico:~$ uname -a
Linux master 6.11.6-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.11.6-1 (2024-11-04) x86_64 GNU/Linux
@ntaken ntaken added bug Something isn't working triage labels Dec 18, 2024
@ntaken
Copy link
Author

ntaken commented Dec 20, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working triage
Projects
None yet
Development

No branches or pull requests

1 participant