I have a question to usage of gvm-cli (version 2.0.0).
openVas V7.0.3 is running on my machine.
I installed gvm-cli, because I’ve read that omp-cli is deprecated.
I try to call the easy request gvm-cli ssh --hostname=localhost --xml “<get_version/>”
After execution I’ve gotten following error: Unable to connect to port 22 on 127.0.0.1
Lukas answer did only reflect the situation with our own Greenbone OS (GOS) at our GSM products. We are only supporting unix domain sockets (local connections) and ssh (remote connections) out of the box. If you are using a third party integration like Kali Linux you most likely can only use unix domain sockets without having to adjust some configs/scripts.
You still didn’t read the docs and my comment. The ssh connection ONLY works for GOS based systems out of the box. If you want to use ssh for remote connections you need to do some sshd setup. The setup isn’t rocket science but we are not going to explain it here in detail.