Sorry to trouble you - this may be a stupid question or obvious, but I just want to be sure.
I want to help get someone else setup with some repos in advance (amongst other things, local env vars, checking etc).
And I wonder if you could confirm that the following process would work
I use bitbucket ssh authentication
so on their pc
add my own ssh private key file to the file system
login to bitbucket in the browser
call the clone commands
use my passphrase to access
check all is working
logout of bitbucket in browser
delete my private key
later get other person setup on bitbucket
set on bitbucket their public ssh
add their ssh private key to their file system
they login to bitbucket in browser
from here presumably they can...
with the repos setup
pull, push, etc etc from their pc
Or have I missed something?
Is there an issue of me accessing from a differnt machine / ip?
Hey @Andrew Hardy
While you may remove your ssh key from the user machine, you may have left the local git config of the clone repo un-touch which still points to your username and ssh key.
This causes the git to look for your ssh key and username when the user tries to do any git activity because the local git config still points to your config.
You can use the following commands to check user local git config:
git config --list
Additionally, if you wish to further troubleshoot the issue you can use the following commands to check if it's using the correct ssh key or username:
GIT_TRACE_PACKET=1 GIT_TRACE=1 GIT_SSH_COMMAND="ssh -vvv" <git command>
I hope this helps