I’m experiencing an issue using gvm-cli to create ssh credentials.
My goal is to create a “username + ssh key”.
Below the command:
/opt/gvm/.local/bin/gvm-cli socket --xml "
-----BEGIN RSA PRIVATE KEY-----
-----END RSA PRIVATE KEY-----
The user is well created without error but when I try to use it, ssh connection doesn’t work.
I’ve noticed that public key generated is empty when I download it from Web interface in Configuration > Credentials > Download Public Key
The workaround I’ve found is to edit the user from Web interface and upload the private key file. Doing it, the public key is well created and I’m able to connect to targets.
But I’d like to create credentials automatically without manual action.
gvm-cli 2.1.0 (API version 1.6.0)
Installation done from source builds
return of my command: <create_credential_response status=“201” status_text=“OK, resource created” id=“8d775f4e-479d-4356-af86-cd0736e03c82”/>
Thanks a lot for your help.