# Authentication failed with gvm-cli

**URL:** <https://forum.greenbone.net/t/authentication-failed-with-gvm-cli/1069>\
**Category:** Greenbone Enterprise\
**Created:** [December 8, 2018, 6:23am UTC](https://forum.greenbone.net/t/authentication-failed-with-gvm-cli/1069 "2018-12-08T06:23:32Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![nlp](https://forum.greenbone.net/letter_avatar/nlp/32/6_449c533f586939b6e5f246632a46421f.png) [@nlp](https://forum.greenbone.net/u/nlp)\
**Post date:** [December 8, 2018, 6:23am UTC](https://forum.greenbone.net/t/authentication-failed-with-gvm-cli/1069/1 "2018-12-08T06:23:32Z")

</div>

Hello

I am running GCE 4.2.24 and gvm-cli 1.4.1  
I am trying to use gvm-cli from my PC to create a target :  
gvm-cli ssh --log INFO --gmp-username cliuser --gmp-password clipassword --hostname 123.134.145.156 --xml “\<create\_target\>Suspect Host1.2.3.4\</create\_target\>”

I am always getting “Authentication failed.” error  
gvm-cli.log shows:  
INFO:paramiko.transport:Connected (version 2.0, client OpenSSH\_6.7p1)  
INFO:paramiko.transport:Authentication (password) failed.

cliuser is defined as admin user and can connect through the web interface.

I found in documentation that GMP should be activated in the setup menu but don’t have such an option.  
Am I missing something?

thanks for your help

---

<div class="post-metadata">

**Author:** ![bricks](https://forum.greenbone.net/user_avatar/forum.greenbone.net/bricks/32/46_2.png) [@bricks](https://forum.greenbone.net/u/bricks)\
**Post date:** [December 8, 2018, 9:10am UTC](https://forum.greenbone.net/t/authentication-failed-with-gvm-cli/1069/2 "2018-12-08T09:10:47Z")

</div>

Hi,

you may need to set the ssh user and password to login at the virtual machine. Currently I don’t know if the SSH server is accessible from the outside nor the ssh username.

Also you should update to gvm-tools 2.0.0.beta1 for using username/password ssh authentication. See gvm-cli ssh --help for the --ssh switch details.

> **[Gvm-tools 2.0.0.beta1 and python-gvm 1.0.0.beta1 released](https://forum.greenbone.net/t/gvm-tools-2-0-0-beta1-and-python-gvm-1-0-0-beta1-released/888)**
>
> we are happy to announce a new release for gvm-tools. With this new 2.0.0.beta1 release gvm-tools got split into a Python API library called python-gvm and the command line tools (including the gmp scripts) staying in gvm-tools. python-gvm...

---

<div class="post-metadata">

**Author:** ![cfi](https://forum.greenbone.net/letter_avatar/cfi/32/6_449c533f586939b6e5f246632a46421f.png) [@cfi](https://forum.greenbone.net/u/cfi)\
**Post date:** [December 8, 2018, 9:18am UTC](https://forum.greenbone.net/t/authentication-failed-with-gvm-cli/1069/3 "2018-12-08T09:18:58Z")

</div>

Hi,

the GCE doesn’t provide the GMP/OMP API as described here:

> **[OpenVAS manager (OMP interface) not available via network?](https://forum.greenbone.net/t/openvas-manager-omp-interface-not-available-via-network/197/2)**
>
> Hi, please see the “Protocols” part of the following product comparison where it is shown that the GCE doesn’t offer the OMP protocol / API: https://www.greenbone.net/en/community-edition/

This is probably also the reason why you can’t find how to enable/activate GMP within the setup menu.

---

<div class="post-metadata">

**Author:** ![cfi](https://forum.greenbone.net/letter_avatar/cfi/32/6_449c533f586939b6e5f246632a46421f.png) [@cfi](https://forum.greenbone.net/u/cfi)\
**Post date:** [March 29, 2019, 10:59am UTC](https://forum.greenbone.net/t/authentication-failed-with-gvm-cli/1069/5 "2019-03-29T10:59:51Z")

</div>

Split this topic on March 29, 2019, 10:59am UTC

3 posts were split to a new topic: [How to use socketpath in gvm-cli](https://forum.greenbone.net/t/how-to-use-socketpath-in-gvm-cli/1902)

---

<div class="post-metadata">

**Author:** ![system](https://forum.greenbone.net/uploads/default/original/2X/4/4660e797edfaea797a8c9965246072ea26732804.png) [@system](https://forum.greenbone.net/u/system)\
**Post date:** [April 7, 2025, 9:59am UTC](https://forum.greenbone.net/t/authentication-failed-with-gvm-cli/1069/6 "2025-04-07T09:59:12Z")

</div>

Closed on April 7, 2025, 9:59am UTC


