git archive command is not working

Created by: enajeeb

Git archive command to get archive of tag (v1.0.0) does not work anymore after migrating to GitLab.

$ git archive --prefix=my-project/ v1.0.0 --remote=git@localhost:my-project.git -o /tmp/my-project.tar fatal: The remote end hung up unexpectedly

Any work around?