Oracle Cloud VNC-Verbindung beheben: no matching host key type found. Their offer: ssh-rsa

English Deutsch

Problem:

Beim Versuch, dich mit deiner Oracle Cloud-Instanz über VNC unter Linux zu verbinden, erhältst du einen Befehl wie

oracle_vnc_ssh_cmd.sh
ssh -o ProxyCommand='ssh -W %h:%p -p 443 ocid1.instanceconsoleconnection.oc1.eu-frankfurt-1.antheljtwxs32nycl7rgwekcj4t2pecwwcsm7mgzy5c3tt3iiovq564wubta@instance-console.eu-frankfurt-1.oci.oraclecloud.com' -N -L localhost:5900:ocid1.instance.oc1.eu-frankfurt-1.antheljtwxs32nycblplzbuamqsqbi4ipz377f3qhs6a4tdh74j673jfsjtq:5900 ocid1.instance.oc1.eu-frankfurt-1.antheljtwxs32nycblplzbuamqsqbi4ipz377f3qhs6a4tdh74j673jfsjtq

aber du siehst Fehlermeldungen wie

ssh_negotiate_error.txt
Unable to negotiate with 130.61.0.255 port 443: no matching host key type found. Their offer: ssh-rsa

Lösung

Füge den folgenden Text am Ende deiner ~/.ssh/config hinzu und versuche es erneut:

ssh_config_allow_rsa.txt
Host *
    HostkeyAlgorithms +ssh-rsa
    PubkeyAcceptedAlgorithms +ssh-rsa

Dies bewirkt, dass SSH RSA-Host-Schlüssel akzeptiert.


Check out similar posts by category: Cloud