We have a couple CentOS 6 systems (which makes me sad) that require you to pass ‘-oHostKeyAlgorithms=+ssh-rsa -oPubkeyAcceptedAlgorithms=+ssh-rsa’ options to the client in order to connect to their ancient, and vulnerable, SSH server.
Is there a way to somehow pass those options along when trying to connect to those endpoints? I’m running OpenVAS in docker containers and Claude said to create an entry in the /root/.ssh/config of the greenbone-community-edition-ospd-openvas-1 container.
I did that:
# docker exec -it greenbone-community-edition-ospd-openvas-1 bash
root@ospd-openvas:/ospd-openvas# cat /root/.ssh/config
Host 192.168.1.156
AddKeysToAgent yes
ConnectTimeout 5
ServerAliveInterval 30
StrictHostKeyChecking no
HostKeyAlgorithms +ssh-rsa
PubkeyAcceptedAlgorithms +ssh-rsa
But it’s not able to create a successful connection.
Is it possible to do this and if so, how?
Thanks!