-
Documentation & bug reporting acknowledgmentYes, I read it Describe your problemHello everyone! I am new to using GLPI, and I am currently trying to use the GLPI Remote Inventory. Based on the documentation, administrative privileges are required for this setup. Would it be possible to use this with SSH-keygen? I am trying to use it with this command, but I am encountering an error. If possible, please help me fix this issue. If not, how can I integrate the SUDO command into the command? Thank you so much! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 7 replies
-
Hi @psl2024 indeed, this is fully possible and I'm using it myself this way. The problem remains to setup the public key authentication in glpi-agent running environment. If you run glpi-agent as a service, you probably have to setup you key under You can also use Remember also you can use ToolBox to simplify RemoteInventory usage: https://glpi-agent.readthedocs.io/en/latest/plugins/toolbox-plugin.html |
Beta Was this translation helpful? Give feedback.
So indeed, it works, the remaining error
[error] [libssh2] Can't authenticate on x.x.x.x remote host
is only related to the libssh2 support which seems to fail and then glpi-agent fallback on using ssh command directly.You have few choice about this error:
?mode=ssh
to have --remote option looking like:--remote="ssh://[email protected]?mode=ssh"