Skip to content
Discussion options

You must be logged in to vote

Is it possible to run scripts via UI from another user?

To do that you would have to create a new queue, with its own netbox-rq worker, running as a different user. But it still wouldn't be able to find your ssh-agent, unless you set the environment variable SSH_AUTH_SOCK. (This is normally present in your shell environment, when you are running commands interactively).

Or how can I allow netbox user to use ssh agent?

By starting ssh-agent as the parent process of the netbox-rq worker, and then connecting to the agent to load your key and your passphrase (with ssh-add). When invoking ssh-add, you can set SSH_AUTH_SOCK explicitly to point to the correct socket location.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by The-Astiks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants