AFAICT the “ssh” type is only working out of the box on the commercial Greenbone appliances but not on self-build environments like Kali (and there is AFAICT also no documentation available for these advisories).
Currently you probably would need to choose a different connection type like TCP (which is AFAICT also not really supported) or Unix Sockets.
@cfi is right, you can’t use ssh out of the box on Kali. It is required to forward your ssh connection to gvmd on the remote host which requires some additional setup. Currently this setup is not documented but you can take a look at the socat tool.
You can of course install gvm-tools in the remote host and call it via ssh. but that’s not what @PapoCarlo wanted to do. he wanted to run gvm-tools on the local host and not the remote one.
I’m really not sure what they wanted to do or avoid doing, since the description was so unclear. SSH natively supports tunneling, for example using LocalForward for TCP ports, and if you want it to start at boot, something like autossh could be used. Then you just use the TCP port or similar.
The ssh connection type of gvm-tools is used as default for our appliances. At the appliances we forward the SSH port to the unix socket. This is done by using socat.
Of course you can forward the SSH port to the TLS port of gvmd or use the TLS connection directly. But as stated before we don’t maintain the TLS setup anymore. If it works fine, but if not, you are on your own.
Yes, you are absolutely right. I want to use gvm-cli to run tasks via cron. To do this, I need to connect and log in to GVM. I have several different interfaces (eth0, eth1, etc.), and I want to scan the same host using different routes. However, the web interface of the scanner does not allow me to select an interface. Please help me!
I see and understand! Thank you! I choose the socket. But why can’t I log in as any user? I’ve figured out the syntax and the socket. However, I still can’t log in as the default user or a newly created user.
@PapoCarlo This has nothing to do with the GUI, but with routing; you need to configure the routing to another interface or dynamically modify it, or something similar.