yang
(Yang.Y)
6
You do not have to set both algorithms, it depends on your remote host complains no matching host key type found
or Permission denied (publickey).
:
Edit ~/.ssh/config
and add following lines:
Host *
HostkeyAlgorithms +ssh-rsa
Please read ssh_config man page if you want fine grained control over hosts.
We have a preference for it here:
Kindly Regards,
Yang