I am running the greenbone community edition using the docker-compose inside a VM.
Now, I want to automate it using a script. So, I am using the gvm-script specifically scan-new-system.gmp.py. But, it’s been nearly impossible to make an SSH connection! I am getting “remote closed connection”, “socket closed” etc errors.
I am using the below command.
gvm-script --gmp-username admin --gmp-password myadminpassword ssh --hostname ip-of-my-vm-where-the-gvm-is-running --ssh-username vm-username-value --ssh-password vm-password-value scripts/scan-new-system.gmp.custom.py target-host-ip 4a4717fe-57d2-11e1-9a26-406186ea4fc5