Looked into stash restapi response - it does report the SSH URL. Apparently the HTTP Git operations can now be administratively forbidden, BTW. But our server does return two HREFs for each repo.
Sample snippets follow (note the tildes and path components, or lack thereof, in different URLs pointing to same entity):
- User's replica of a repo:
{noformat}
...,"links":{"clone":
[{"href":"http://StashJenkins@stash.com/scm/~username/reponame.git","name":"http"},
{"href":"ssh://git@stash.com:7999/~username/reponame.git","name":"ssh"}],
"self":[\{"href":"http://stash.com/users/username/repos/reponame/browse"}]}},...
{noformat}
- Project replica (the common upstream repo):
{noformat}
..."links":{"clone":
[{"href":"http://StashJenkins@stash.com/scm/projname/reponame.git","name":"http"},
{"href":"ssh://git@stash.com:7999/projname/reponame.git","name":"ssh"}],
"self":[\{"href":"http://stash.com/projects/PROJNAME/repos/reponame/browse"}]}},
{noformat}
For the latter case - note that our project name is upper-cased in web-GUI. While it seems that URLs are case-insensitive in practice, the "projname" is spelled lower-case in the clone URLs, and uppercase as it is originally - in the browse URL. Not sure if it practically matters in any version of Stash, so just in case FYI 
Looked into stash restapi response - it does report the SSH URL. Apparently the HTTP Git operations can now be administratively forbidden, BTW. But our server does return two HREFs for each repo.
Sample snippets follow (note the tildes and path components, or lack thereof, in different URLs pointing to same entity):
{noformat}
...,"links":{"clone":
[{"href":"http://StashJenkins@stash.com/scm/~username/reponame.git","name":"http"},
{"href":"ssh://git@stash.com:7999/~username/reponame.git","name":"ssh"}],
"self":[\{"href":"http://stash.com/users/username/repos/reponame/browse"}]}},...
{noformat}
{noformat}
..."links":{"clone":
[{"href":"http://StashJenkins@stash.com/scm/projname/reponame.git","name":"http"},
{"href":"ssh://git@stash.com:7999/projname/reponame.git","name":"ssh"}],
"self":[\{"href":"http://stash.com/projects/PROJNAME/repos/reponame/browse"}]}},
{noformat}
For the latter case - note that our project name is upper-cased in web-GUI. While it seems that URLs are case-insensitive in practice, the "projname" is spelled lower-case in the clone URLs, and uppercase as it is originally - in the browse URL. Not sure if it practically matters in any version of Stash, so just in case FYI