When I create a new config:
gvm-cli tls --hostname 172.16.1.107 --port 9390 --gmp-username $username --gmp-password $password -X “<create_config><get_configs_response>NEWTESTING<creation_time>2019-08-13T19:58:15+08:00</creation_time><modification_time>2019-08-13T19:58:15+08:00</modification_time>1<in_use>1</in_use>Everything<user_tags>0</user_tags><family_count>200</family_count><nvt_count>27241</nvt_count>0first=1 rows=1000 sort=namefirst=1rows=1000sort=namenameascending<config_count>911</config_count></get_configs_response></create_config>”
the result is OSError: Connection was closed by remote server
Is openvasmd/gvmd serving our Greenbone Management Protocol via TLS on port 9390? Neither TLS or SSH connections work out of the box without using a Greenbone appliance. Also only OpenVAS 9 and GVM 10 are supported by gvm-tools.
I have installed openvas9 (gvm-lib 10 ,gvmd 8) on Centos7 , then try to connect from another OS with following command to openvas
]$ gvm-cli ssh --xml test.xml --hostname 192.168.2.2 --ssh-user testgvm --ssh-password 123456
but this error is shown
“Remote closed the connection”
I have a trial version of gsa and TLS os working without ant configuration but SSH getting connection closed errors. It would be great if this topic could be addressed with some general guidance