SSH not working after installing pulseaudio / upgrading system

Well, i had some problems with pulseaudio: Pulseaudio restart only works with music inside browser

So, i removes all pulseaudio related programs and installed them again with:
sudo pamac install pulseaudio pulseaudio-alsa pulseaudio-bluetooth pulseaudio-ctl pulseaudio-equalizer pulseaudio-jack pulseaudio-lirc pulseaudio-rtp pulseaudio-zeroconf pulseaudio-equalizer-ladspa

As soon as i run this command, i recognize, that my system not only installs pulseaudio-* but also updates nearly every package and my whole system itself. Why? And yes, it was only this command - nothing else.

But never the less, after that i can’t connect over ssh to my device “No supported authentication methods available (server sent public key)”. I did nothing with ssh. And this is the same public/private key as always.

sudo systemctl status sshd.service shows me, that sshd is enabled and active. The port is also correct. Also the public key is correct. Any ideas what happens after running this pamac command above and why this affects my whole systems and also the functionality of ssh?

I suspect that your public key file is the problem. Try to create a public key file.

I don’t know why this happened, cause my private/public key always worked till this command…?

But anyway, i also created a new public/private with putty, after that i formated they key like this:
ssh-keygen -i -f publickeyfromputty > openssh.pub

This key is now in my authorized_keys file. Access rights are also correct:
chmod 700 ~/.ssh
chmod 600 ~/.ssh/authorized_keys
chown $USER:$USER ~/.ssh -R

But still “No supported authentication methods available (server sent public key)”. Its not the first time i create a ssh key, but the first time i’ll get those kind of issues which i simply can’t explain.

Should ssh be a system service and not running as the user? How could it even use port 22 then?

What does the server log say?

Oops, typo, correct command was sudo systemctl status sshd.service

journalctl -u sshd

Dez 29 12:35:29 nuc pipewire[17533]: mod.rtkit: could not set nice-level to -11: Keine Berechtigung
Dez 29 12:35:29 nuc pipewire[17533]: mod.protocol-native: server 0x556188acc2c0: name pipewire-0 is not an absolute path and no runtime dir found. Set one of PIPEWIRE_RUNTIME_DIR, XDG_RUNTIME_DIR or USERPROFILE in the environment
Dez 29 12:35:29 nuc pipewire[17533]: pw.conf: 0x556188a8ae60: could not load mandatory module "libpipewire-module-protocol-native": Datei oder Verzeichnis nicht gefunden
Dez 29 12:35:29 nuc pipewire[17533]: default: failed to create context: Datei oder Verzeichnis nicht gefunden
Dez 29 12:35:37 nuc systemd[1]: Stopping OpenSSH Daemon...
Dez 29 12:35:37 nuc systemd[1]: sshd.service: Succeeded.
Dez 29 12:35:37 nuc systemd[1]: sshd.service: Unit process 9525 (sshd) remains running after unit stopped.
Dez 29 12:35:37 nuc systemd[1]: sshd.service: Unit process 9548 (sshd) remains running after unit stopped.
Dez 29 12:35:37 nuc systemd[1]: sshd.service: Unit process 9549 (bash) remains running after unit stopped.
Dez 29 12:35:37 nuc systemd[1]: Stopped OpenSSH Daemon.
-- Boot 43c8319d91154348a8fee7f224e1ddfc --
Dez 29 12:36:21 nuc systemd[1]: Started OpenSSH Daemon.
Dez 29 12:36:21 nuc sshd[570]: Server listening on 0.0.0.0 port 22.
Dez 29 12:36:21 nuc sshd[570]: Server listening on :: port 22.
Dez 29 12:58:40 nuc systemd[1]: Stopping OpenSSH Daemon...
Dez 29 12:58:40 nuc systemd[1]: sshd.service: Deactivated successfully.
Dez 29 12:58:40 nuc systemd[1]: Stopped OpenSSH Daemon.
-- Boot 356d737694104f7f8c533c28bb42c7d7 --
Dez 29 12:59:26 nuc systemd[1]: Started OpenSSH Daemon.
Dez 29 12:59:26 nuc sshd[658]: Server listening on 0.0.0.0 port 22.
Dez 29 12:59:26 nuc sshd[658]: Server listening on :: port 22.
Dez 29 13:00:50 nuc systemd[1]: Stopping OpenSSH Daemon...
Dez 29 13:00:50 nuc systemd[1]: sshd.service: Deactivated successfully.
Dez 29 13:00:50 nuc systemd[1]: Stopped OpenSSH Daemon.
-- Boot bc6ef396b59148f3962e326d76c499e2 --
Dez 29 13:01:42 nuc systemd[1]: Started OpenSSH Daemon.
Dez 29 13:01:42 nuc sshd[619]: Server listening on 0.0.0.0 port 22.
Dez 29 13:01:42 nuc sshd[619]: Server listening on :: port 22.
Dez 29 13:02:41 nuc sshd[7794]: userauth_pubkey: key type ssh-rsa not in PubkeyAcceptedAlgorithms [preauth]
Dez 29 13:02:42 nuc sshd[7794]: Connection closed by authenticating user user 192.168.178.20 port 57769 [preauth]
Dez 29 13:02:47 nuc sshd[7994]: userauth_pubkey: key type ssh-rsa not in PubkeyAcceptedAlgorithms [preauth]
Dez 29 13:02:52 nuc sshd[7994]: Connection closed by authenticating user user 192.168.178.20 port 57770 [preauth]
Dez 29 13:03:03 nuc sshd[8267]: userauth_pubkey: key type ssh-rsa not in PubkeyAcceptedAlgorithms [preauth]
Dez 29 13:03:06 nuc sshd[8267]: Connection closed by authenticating user user 192.168.178.20 port 57781 [preauth]
Dez 29 13:03:15 nuc sshd[8362]: userauth_pubkey: key type ssh-rsa not in PubkeyAcceptedAlgorithms [preauth]
Dez 29 13:03:15 nuc sshd[8362]: Connection closed by authenticating user user 192.168.178.20 port 57782 [preauth]
Dez 29 13:04:08 nuc sshd[9465]: userauth_pubkey: key type ssh-rsa not in PubkeyAcceptedAlgorithms [preauth]
Dez 29 13:04:09 nuc sshd[9465]: Connection closed by authenticating user user 192.168.178.20 port 57795 [preauth]
Dez 29 13:06:10 nuc sshd[11047]: Invalid user \303\266 from 192.168.178.20 port 57819
Dez 29 13:06:10 nuc sshd[11047]: userauth_pubkey: key type ssh-rsa not in PubkeyAcceptedAlgorithms [preauth]
Dez 29 13:06:16 nuc sshd[11047]: Connection closed by invalid user \\303\\266 192.168.178.20 port 57819 [preauth]
Dez 29 13:08:24 nuc sshd[12696]: userauth_pubkey: key type ssh-rsa not in PubkeyAcceptedAlgorithms [preauth]
Dez 29 13:08:24 nuc sshd[12696]: Connection closed by authenticating user user 192.168.178.20 port 57908 [preauth]
Dez 29 13:08:46 nuc sshd[12970]: userauth_pubkey: key type ssh-rsa not in PubkeyAcceptedAlgorithms [preauth]
Dez 29 13:08:47 nuc sshd[12970]: Connection closed by authenticating user user 192.168.178.20 port 57909 [preauth]
Dez 29 15:12:42 nuc sshd[77719]: userauth_pubkey: key type ssh-rsa not in PubkeyAcceptedAlgorithms [preauth]
Dez 29 15:12:43 nuc sshd[77719]: Connection closed by authenticating user user 192.168.178.20 port 63131 [preauth]
Dez 29 15:19:48 nuc systemd[1]: Stopping OpenSSH Daemon...
Dez 29 15:19:48 nuc systemd[1]: sshd.service: Deactivated successfully.
Dez 29 15:19:48 nuc systemd[1]: Stopped OpenSSH Daemon.
-- Boot 521cc7693537422ea284614d7d589f06 --
Dez 29 15:20:34 nuc systemd[1]: Started OpenSSH Daemon.
Dez 29 15:20:34 nuc sshd[621]: Server listening on 0.0.0.0 port 22.
Dez 29 15:20:34 nuc sshd[621]: Server listening on :: port 22.
Dez 29 17:17:41 nuc sshd[66668]: userauth_pubkey: key type ssh-rsa not in PubkeyAcceptedAlgorithms [preauth]
Dez 29 17:17:45 nuc sshd[66668]: Connection closed by authenticating user user 192.168.178.20 port 60291 [preauth]
Dez 29 17:17:54 nuc sshd[66780]: userauth_pubkey: key type ssh-rsa not in PubkeyAcceptedAlgorithms [preauth]
Dez 29 17:17:58 nuc sshd[66780]: Connection closed by authenticating user user 192.168.178.20 port 60294 [preauth]
Dez 29 17:39:40 nuc sshd[79283]: Invalid user \303\252ric from 192.168.178.20 port 55344
Dez 29 17:39:40 nuc sshd[79283]: userauth_pubkey: key type ssh-rsa not in PubkeyAcceptedAlgorithms [preauth]
Dez 29 17:39:41 nuc sshd[79283]: Connection closed by invalid user \\303\\252ric 192.168.178.20 port 55344 [preauth]
Dez 29 17:39:46 nuc sshd[79304]: userauth_pubkey: key type ssh-rsa not in PubkeyAcceptedAlgorithms [preauth]
Dez 29 17:39:48 nuc sshd[79304]: Connection closed by authenticating user user 192.168.178.20 port 55345 [preauth]
Dez 29 17:40:11 nuc sshd[79553]: userauth_pubkey: key type ssh-rsa not in PubkeyAcceptedAlgorithms [preauth]
Dez 29 17:41:05 nuc sshd[79553]: Connection closed by authenticating user user 192.168.178.20 port 55348 [preauth]
Dez 29 17:42:04 nuc sshd[80449]: Connection reset by 192.168.178.20 port 55417 [preauth]
Dez 29 17:47:15 nuc systemd[1]: Stopping OpenSSH Daemon...
Dez 29 17:47:15 nuc sshd[621]: Received signal 15; terminating.
Dez 29 17:47:15 nuc systemd[1]: sshd.service: Deactivated successfully.
Dez 29 17:47:15 nuc systemd[1]: Stopped OpenSSH Daemon.
Dez 29 17:47:15 nuc systemd[1]: Started OpenSSH Daemon.
Dez 29 17:47:15 nuc sshd[83009]: Server listening on 0.0.0.0 port 22.
Dez 29 17:47:15 nuc sshd[83009]: Server listening on :: port 22.
Dez 29 17:47:52 nuc sshd[83281]: userauth_pubkey: key type ssh-rsa not in PubkeyAcceptedAlgorithms [preauth]
Dez 29 17:47:53 nuc sshd[83281]: Connection closed by authenticating user user 192.168.178.20 port 55495 [preauth]
Dez 29 17:50:23 nuc sshd[83009]: Received signal 15; terminating.
Dez 29 17:50:23 nuc systemd[1]: Stopping OpenSSH Daemon...
Dez 29 17:50:23 nuc systemd[1]: sshd.service: Deactivated successfully.
Dez 29 17:50:23 nuc systemd[1]: Stopped OpenSSH Daemon.
Dez 29 17:50:23 nuc systemd[1]: Started OpenSSH Daemon.
Dez 29 17:50:23 nuc sshd[84549]: Server listening on 0.0.0.0 port 22.
Dez 29 17:50:23 nuc sshd[84549]: Server listening on :: port 22.
Dez 29 17:50:46 nuc sshd[84549]: Received signal 15; terminating.
Dez 29 17:50:46 nuc systemd[1]: Stopping OpenSSH Daemon...
Dez 29 17:50:46 nuc systemd[1]: sshd.service: Deactivated successfully.
Dez 29 17:50:46 nuc systemd[1]: Stopped OpenSSH Daemon.
-- Boot a051ce5389004e4da46d3ee571622c66 --
Dez 29 17:51:33 nuc systemd[1]: Started OpenSSH Daemon.
Dez 29 17:51:33 nuc sshd[648]: Server listening on 0.0.0.0 port 22.
Dez 29 17:51:33 nuc sshd[648]: Server listening on :: port 22.
Dez 29 17:52:41 nuc sshd[6498]: userauth_pubkey: key type ssh-rsa not in PubkeyAcceptedAlgorithms [preauth]
Dez 29 17:52:42 nuc sshd[6498]: Connection closed by authenticating user user 192.168.178.20 port 55534 [preauth]
Dez 29 17:52:51 nuc sshd[6627]: userauth_pubkey: key type ssh-rsa not in PubkeyAcceptedAlgorithms [preauth]
Dez 29 17:52:52 nuc sshd[6627]: Connection closed by authenticating user user 192.168.178.20 port 55541 [preauth]
Dez 29 17:54:57 nuc sshd[7650]: userauth_pubkey: key type ssh-rsa not in PubkeyAcceptedAlgorithms [preauth]
Dez 29 17:55:01 nuc sshd[7650]: Connection closed by authenticating user user 192.168.178.20 port 55566 [preauth]
Dez 29 18:06:20 nuc sshd[13222]: Connection reset by 192.168.178.20 port 55778 [preauth]
Dez 29 18:06:23 nuc sshd[13224]: Connection reset by authenticating user user 192.168.178.20 port 55779 [preauth]
Dez 29 18:06:47 nuc sshd[13429]: Connection reset by authenticating user user 192.168.178.20 port 55791 [preauth]
Dez 29 18:06:57 nuc sshd[13552]: Connection reset by authenticating user user 192.168.178.20 port 55792 [preauth]

There we have key type ssh-rsa not in PubkeyAcceptedAlgorithms

But ssh -Q key shows ssh-rsa.

Ok, my problem is perfectly expalined here: Unable to login in remotely using ssh using rsa keys after last update - #2 by Fabby

I had to add PubkeyAcceptedAlgorithms=+ssh-rsa to my sshd_conf in order to get it working.

I see, you’re still using SHA1. That is why PubkeyAcceptedAlgorithms=+ssh-rsa is disabled by default.


You can edit the file ~/.ssh/config in your home directory. It will enable RSA/SHA1.

Host your-old-host
        HostkeyAlgorithms +ssh-rsa
        PubkeyAcceptedAlgorithms +ssh-rsa

https://www.openssh.com/txt/release-8.8

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.