Hi all,
So I had a little tool that our PA could just type a project name into and then it would both create the project in shotgrid and then download the config into it to actually set it up. This was working beautifully. Now that Atlassian have changed authenticating when using git with bitbucket, it no longer works (in theory I could set up an app password, but if I do it then forces me to set up TFA, which is both undesriable for us and potentially impossible as we don;t have access to the email address that set up the bitbucket account).
SSH seems the best way to deal with the issue, but I was having troubles suppressing the need for the password to be entered all the time, I got round this for cloning from the command line by editing my .bashrc as per some info online, but when trying to run my little tool, it just gets stuck and hangs every time.
Here’s the end of the (sanitised) Shotgrid console output:
2022-03-22 19:38:22,528 [ DEBUG] [PROXY] Return code: 128
2022-03-22 19:38:22,533 [ DEBUG] [PROXY] Process stdout/stderr:
2022-03-22 19:38:22,539 [ DEBUG] [PROXY] git@bitbucket.org: Permission denied (publickey).
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
2022-03-22 19:38:22,546 [ DEBUG] [PROXY] Subprocess call failed.
2022-03-22 19:38:22,552 [ DEBUG] [PROXY] Executing command 'git clone --no-hardlinks -q "git@bitbucket.org:USERNAME/CONFIGNAME.git" "c:\users\NAME\appdata\local\temp\sgtk_clone_54c8dbc4cf9149d99de8e34dc4c2ca1f"' using os.system
2022-03-22 19:38:22,561 [ DEBUG] [PROXY] Note: in a terminal environment, this may prompt for authentication
It wouldn’t be the end of the world if it did pop up a prompt requiring the SSH password, but it doesn’t even do that, just hangs.
I’m not really sure what to do, as it’s denying me permission, even though the keys are fine and all good on the command line. I only see that same error on the command line if I do what people say to do to persist not having to put in your SSH password all the time, which is to have your SSH config command (or GIT_SSH env variable) point to C:/Windows/System32/OpenSSH/ssh.exe.
I’ve never used SSH previously and certainly not in relation to anything Shotgrid, so I’m hoping I’m missing some simple fix. Has anyone run into anything similar and has any ideas how I can get round this? Thanks very much.