如何修复 Oracle Cloud VNC 连接:no matching host key type found. Their offer: ssh-rsa
问题:
尝试使用 Linux 通过 VNC 连接到 Oracle Cloud 实例时,你会得到类似这样的命令
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但你看到类似这样的错误消息
ssh_negotiate_error.txt
Unable to negotiate with 130.61.0.255 port 443: no matching host key type found. Their offer: ssh-rsa解决方案
在 ~/.ssh/config 末尾添加以下文本并重试:
ssh_config_allow_rsa.txt
Host *
HostkeyAlgorithms +ssh-rsa
PubkeyAcceptedAlgorithms +ssh-rsa这将使 SSH 接受 RSA 主机密钥。
Check out similar posts by category:
Cloud
If this post helped you, please consider buying me a coffee or donating via PayPal to support research & publishing of new posts on TechOverflow