I am looking at this Download private BitBucket repository zip file using http authentication and trying to implement download of one file.
git archive --remote=ssh://git@bitbucket.org/steven/SH/downloads.git --format=zip --output="gz.zip" master
As well as
git archive --remote=ssh://git@bitbucket.org/steven/SH.git downloads/gz --output output.zip
I get - fatal: could not create archive file Permission denied