Workbench github integration combined with shell github using ssh

If you are reporting a bug or error, consider submitting a Support Bundle to aiworkbench-ea@nvidia.com. This will help us solve your issue more quickly.

Please describe your issue or request:

In AI Workbench, it has a token-based integration with GitHub that seems to depend upon the origin being set to the https:// URL of the remote. However, if one is also working in the shell simultaneously (more convenient for doing bulk file operations and editing requirements.txt etc), this is very inconvenient since then one cannot easily push/pull from the command line, as far as I can tell.

Having set up ssh-agent with systemd on the Spark, if I set the remote origin to use ssh, then the command line is convenient, but Workbench fails to fetch.

Is there any way to switch Workbench to use ssh authentication for the GitHub stuff? Or any way to make this convenient for people who are switching back and forth?

It’s tempting to just ditch the UI completely and switch to nvwb + ssh but I was wondering if I was missing something obvious.

Do people set two remotes? Keep origin as https and add something else for ssh?

Thanks!

Please tick the appropriate box to help us categorize your post
Bug or Error
Feature Request
X Documentation Issue
Other

There isn’t currently a way to change Workbench to use ssh URLs.

It is possible to use the gitconfig url insteadOf feature to have the Git CLI automatically rewrite the https urls to ssh ones.

Example ~/.gitconfig entry on the remote machine or in the project container (depending on where you are executing git)

[url "ssh://git@github.com/"]
	insteadOf = https://github.com/