# Can you pass SSH options to connect to older systems?

**URL:** <https://forum.greenbone.net/t/can-you-pass-ssh-options-to-connect-to-older-systems/22290>\
**Category:** How To\
**Created:** [May 7, 2026, 4:59am UTC](https://forum.greenbone.net/t/can-you-pass-ssh-options-to-connect-to-older-systems/22290 "2026-05-07T04:59:02Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![nothanks](https://forum.greenbone.net/letter_avatar/nothanks/32/6_449c533f586939b6e5f246632a46421f.png) [@nothanks](https://forum.greenbone.net/u/nothanks)\
**Post date:** [May 7, 2026, 4:59am UTC](https://forum.greenbone.net/t/can-you-pass-ssh-options-to-connect-to-older-systems/22290/1 "2026-05-07T04:59:02Z")

</div>

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!

---

<div class="post-metadata">

**Author:** ![Eero](https://forum.greenbone.net/letter_avatar/eero/32/6_449c533f586939b6e5f246632a46421f.png) [@Eero](https://forum.greenbone.net/u/Eero)\
**Post date:** [May 7, 2026, 9:47am UTC](https://forum.greenbone.net/t/can-you-pass-ssh-options-to-connect-to-older-systems/22290/2 "2026-05-07T09:47:36Z")

</div>

@nothanks openvas does not use system ssh client. try copilot for better answers..

Eero

---

<div class="post-metadata">

**Author:** ![Eero](https://forum.greenbone.net/letter_avatar/eero/32/6_449c533f586939b6e5f246632a46421f.png) [@Eero](https://forum.greenbone.net/u/Eero)\
**Post date:** [May 7, 2026, 10:17am UTC](https://forum.greenbone.net/t/can-you-pass-ssh-options-to-connect-to-older-systems/22290/3 "2026-05-07T10:17:32Z")

</div>

@nothanks you probably need to downgrade/configure libssh parameters (”not sure, need to test it on lab”)

Eero

---

<div class="post-metadata">

**Author:** ![nothanks](https://forum.greenbone.net/letter_avatar/nothanks/32/6_449c533f586939b6e5f246632a46421f.png) [@nothanks](https://forum.greenbone.net/u/nothanks)\
**Post date:** [May 8, 2026, 4:17am UTC](https://forum.greenbone.net/t/can-you-pass-ssh-options-to-connect-to-older-systems/22290/4 "2026-05-08T04:17:15Z")

</div>

Thank you very much for your reply! I’ll just have to exclude these older hosts. But thank you again – I really appreciate your help!

---

<div class="post-metadata">

**Author:** ![Eero](https://forum.greenbone.net/letter_avatar/eero/32/6_449c533f586939b6e5f246632a46421f.png) [@Eero](https://forum.greenbone.net/u/Eero)\
**Post date:** [May 8, 2026, 5:42am UTC](https://forum.greenbone.net/t/can-you-pass-ssh-options-to-connect-to-older-systems/22290/5 "2026-05-08T05:42:24Z")

</div>

@nothanks

It would be advisable to phase out old, unsupported hosts, as they are a nightmare from an information security perspective. They suffer from serious security vulnerabilities, including Copy‑Fail and the recently published Dirty‑Flag issue.

Eero

---

<div class="post-metadata">

**Author:** ![system](https://forum.greenbone.net/uploads/default/original/2X/4/4660e797edfaea797a8c9965246072ea26732804.png) [@system](https://forum.greenbone.net/u/system)\
**Post date:** [August 5, 2026, 4:59am UTC](https://forum.greenbone.net/t/can-you-pass-ssh-options-to-connect-to-older-systems/22290/6 "2026-08-05T04:59:32Z")

</div>

Closed on August 5, 2026, 4:59am UTC

This topic was automatically closed after 90 days. New replies are no longer allowed.
