Raspberry Zugriff über Putty nicht mehr möglich

Begonnen von Ajuba, 01 Juli 2025, 21:09:13

Vorheriges Thema - Nächstes Thema

Ajuba

Hallo
Ich schaffe bei meinem Raspberry keinen Zugriff mehr über Putty.
Fehlermeldung: Couldn't agree a host key algorithm...

Hintergrund:
Bei meinem Raspberry mit geteilter SD Karte ist die Erweiterungs-Partition voll gelaufen wo Logs und Backups hinkommen. Ich wollte dort aufräumen und löschen. Die Fhem Partition hat genug Speicher und Fhem läuft problemlos.

Zusatzinformationen:
- Mit der Putty Version 0.67 habe ich über Jahre hinweg immer problemlos zugegriffen.
- Mein PC, mit dem ich zuletzt Zugriff hatte, ist zur Zeit nicht verfügbar aber der jetzt verwendete, alte PC hatte früher auch funktioniert.
-Heute hatte Putty beim zweiten Versuch plötzlich die bekannte Meldung gezeigt, dass das Zertifikat nicht passen würde (oder so ähnlich) und ob ich trotzdem verbinden wolle. Diese Meldung kenne ich von früher beim ersten Verbinden und ich klickte JA. Dann funktionierte aber mein pi Passwort plötzlich nicht. Ich versuchte es erneut und jetzt kommt immer wieder Couldn't agree a host key algorithm...

Ich bin jetzt ziemlich ratlos. Hat jemand eine Tipp?
FHEM auf RPi3, Homematic CCU3 mit Cuxd und CUL 868 für FS20, Siemens S7 über CP343-1,
DbLog zu MySQL auf NAS QNAP TS-253D,
Yeelight

RalfRog

#1
Hi
An welchen Stellen man bei SSH im Detail schrauben kann weiss ich jetzt im Einzelnen auch nicht.

Wenn der Zugriff "dringend" ist, einfach Tastatur und Monitor anschließen.

Gruß Ralf

Update:
Vielleicht liegt es an der Version
=> The latest version is 0.83
(0.67 released 2016-03-05)
FHEM auf Proxmox VM Bookworm (Futro S740) - nanoCUL, HM-MOD-RPI-PCB und MAX!Cube über LAN
HM- Fensterkontakte, UP-Schalter, Bewegungsmelder und ein Rauchmelder sowie Shelly 3EM, 1PM, PlugS und IT Schaltsteckdosen

Otto123

Zitat von: Ajuba am 01 Juli 2025, 21:09:13Ich bin jetzt ziemlich ratlos. Hat jemand eine Tipp?
Putty braucht man eigentlich nicht, jedes bekannte, halbwegs aktuelle Desktop System (Windows, Linux, IOS) bringt seit langem ssh mit. Also einfach Terminal auf: ssh username@Host und man ist drin. ;)
BTW: auch die QNAP NAS hat ein Terminal? Oder ein Android System mit ConnectBot o.ä.

Wenn die root Partition voll ist (oder eben ein bestimmter Pfad keinen freien Platz hat), geht meist auch kein ssh remote Zugriff. Keine Ahnung was auf Deiner Erweiterungspartition gemounted ist.
Dann hilft kurzzeitig ein Neustart des System.
Zitat von: Ajuba am 01 Juli 2025, 21:09:13alte PC hatte früher auch funktioniert.
Wie alt? Welches System?
Zitat von: Ajuba am 01 Juli 2025, 21:09:13Couldn't agree a host key algorithm...
Naja die Meldung ist eindeutig, das sagt die moderne Suche dazu:
ZitatÜbersicht mit KI
The "Couldn't agree a host key algorithm" error in SSH indicates a mismatch between the algorithms supported by your SSH client and the server you're connecting to. This usually happens when the client is outdated and doesn't support the algorithms the server uses, or when the server has disabled older, less secure algorithms.
Here's a breakdown of the issue and how to resolve it:
Causes:
Outdated SSH client:
Older versions of PuTTY, WinSCP, or other clients may not support the newer, more secure host key algorithms (like rsa-sha2-512, rsa-sha2-256, ecdsa-sha2-nistp256) that many servers now use.
Server-side algorithm restrictions:
Servers may disable support for older algorithms like sha-1 due to security concerns.
Solutions:
1. Update your SSH client:
The most common solution is to upgrade your SSH client to the latest version. This ensures it supports the algorithms the server is using. For example, PuTTY can be updated from PuTTY.
2. Adjust client configuration:
If updating isn't immediately possible, some clients allow you to manually configure the supported algorithms. You can try adding the server's supported algorithms to the client's configuration.
3. Update server configuration (if you control the server):
If you have control over the server, you can adjust the sshd_config file to enable older algorithms. However, this is generally not recommended due to security risks.
4. Use a different client:
If you can't update or configure your current client, try using a different SSH client that supports the necessary algorithms.
Example:
A common scenario is using an older version of PuTTY that doesn't support the rsa-sha2-512 or rsa-sha2-256 algorithms. Updating to a newer version of PuTTY, or adding those algorithms to the client's configuration, will resolve the issue.

Gruß Otto
Viele Grüße aus Leipzig  ⇉  nächster Stammtisch an der Lindennaundorfer Mühle
RaspberryPi B B+ B2 B3 B3+ ZeroW,HMLAN,HMUART,Homematic,Fritz!Box 7590,WRT3200ACS-OpenWrt,Sonos,VU+,Arduino nano,ESP8266,MQTT,Zigbee,deconz