Hello All,
I have followed the instruction on this page for initiating scans, https://docs.greenbone.net/GSM-Manual/gos-4/en/omp.html
I run this script,
gvm-cli ssh --gmp-username admin --gmp-password admin123
–hostname 9.x.x.x \ --xml “<create_target>Suspect Host \ $IPADDRESS</create_target>”
and my results are,
File “/usr/lib/python3.4/site-packages/gvm/connections.py”, line 206, in connect
look_for_keys=False)
File “/usr/lib/python3.4/site-packages/paramiko/client.py”, line 380, in connect
look_for_keys, gss_auth, gss_kex, gss_deleg_creds, gss_host)
File “/usr/lib/python3.4/site-packages/paramiko/client.py”, line 621, in _auth
raise saved_exception
File “/usr/lib/python3.4/site-packages/paramiko/client.py”, line 608, in _auth
self._transport.auth_password(username, password)
File “/usr/lib/python3.4/site-packages/paramiko/transport.py”, line 1272, in auth_password
return self.auth_handler.wait_for_response(my_event)
File “/usr/lib/python3.4/site-packages/paramiko/auth_handler.py”, line 208, in wait_for_response
raise e
paramiko.ssh_exception.AuthenticationException: Authentication failed.
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File “/usr/bin/gvm-cli”, line 11, in
load_entry_point(‘gvm-tools==2.0.0b1’, ‘console_scripts’, ‘gvm-cli’)()
File “/usr/lib/python3.4/site-packages/gvmtools/cli.py”, line 251, in main
gvm.authenticate(args.gmp_username, args.gmp_password)
File “/usr/lib/python3.4/site-packages/gvm/protocols/gmpv7.py”, line 210, in authenticate
self._send(cmd.to_string())
File “/usr/lib/python3.4/site-packages/gvm/protocols/base.py”, line 62, in _send
self.connect()
File “/usr/lib/python3.4/site-packages/gvm/protocols/base.py”, line 98, in connect
self._connection.connect()
File “/usr/lib/python3.4/site-packages/gvm/connections.py”, line 214, in connect
raise GvmError(‘SSH Connection failed’, e)
gvm.errors.GvmError: (‘SSH Connection failed’, AuthenticationException(‘Authentication failed.’,))
Im not sure what this means
Thanks for the help