I've got a git-repository running on a stash-server. Cloning the repository via http
works fine
git clone http://user@server:7990/a/b/sandbox.git
For some weird reason, when I switch http
with ssh
and with it the port, it gives me
git clone ssh://user@server:7999/a/b/sandbox.git
Cloning into sandbox...
fatal: remote error: Remote URL invalid
A repository could not be determined from the remote URL. Please confirm the
clone URL in Stash and try again. URL suffix: '/scm/ct/sandbox.git'
fatal: The remote end hung up unexpectedly
The server has ssh
enabled and the port set to 7999
. How comes, that it can't find the repository when the request is sent via ssh
rather than http
?