On November 21, 2024 2:05 PM, Konstantin Khomoutov wrote: >On Thu, Nov 21, 2024 at 11:24:42AM +0100, Luis Heredia wrote: > >[...] >> The problem is when i try to clone in my windows 10 local machine (cmd >> git clone - v ssh://user@serverIp:port/gitServer/git.git c:/temp) i >> always receive the error "fatal: ´´/gitServer/git.git'' does not >> appear to be a git repository". > >Does it work if you call > > git clone ssh://user@serverIp:port/c/gitServer/git.git > >or may be > > git clone ssh://user@serverIp:port/c:/gitServer/git.git > >? > >Basically the problem appears to be in that the Git process spawned remotely in the >SSH session set up by your local Git process, is given the path component of the >repository URL, which is "/gitServer/git.git" in your case. >Obviously, this path is not correct on Windows filesystems. Some SSH servers restrict interactions to a specific directory rather than allowing access to the root of the disk. I got around that by setting up a link (via Cygwin64) to the target location, which bypasses the configured SSH root. It would then require a different URI to account for that. --Randall