Skip to content
This repository was archived by the owner on Aug 24, 2024. It is now read-only.
Jeffrey edited this page Feb 7, 2023 · 9 revisions

1. no matching host key type found. Their offer: ssh-rsa

# ssh version
[23:30:46] ❯ ssh -V
OpenSSH_8.9p1 Ubuntu-3ubuntu0.1, OpenSSL 3.0.2 15 Mar 2022

# Solution
## add the follwoing to /etc/ssh/sshd_config
Include /etc/ssh/sshd_config.d/*.conf

PubkeyAcceptedKeyTypes +ssh-rsa
HostKeyAlgorithms +ssh-rsa

## update ~/.ssh/config
Host xxxx
  User guanzenghui
  PubkeyAcceptedKeyTypes +ssh-rsa
  HostKeyAlgorithms +ssh-rsa

## gen pub key
ssh-keygen -t rsa

Clone this wiki locally