use:
create .ssh/config
and write below content:
Host *
PubkeyAcceptedKeyTypes=+ssh-rsa
HostKeyAlgorithms=+ssh-rsa
checkout the docs at https://freemarker.apache.org/docs/dgui_misc_var.html