Uzak bir depo için yerel git projemi kuruyorum. Uzak havuz, standart olmayan bir bağlantı noktasında (4019) sunuluyor.
Ama işe yaramıyor. Bunun yerine aşağıdaki hata mesajını alıyorum:
ssh: connect to host git.host.de:4019 port 22: Connection refused
fatal: The remote end hung up unexpectedly
error: failed to push to 'ssh://root@git.host.de:4019/var/cache/git/project.git'
Yerel git yapılandırmam aşağıdaki gibidir :
[core]
repositoryformatversion = 0
filemode = true
bare = false
logallrefupdates = true
[remote "origin"]
url = ssh://root@git.host.de:4019/var/cache/git/project.git
fetch = +refs/heads/*:refs/remotes/origin/*
[branch "master"]
remote = origin
merge = refs/heads/master
(Bağlantı noktası ve ana bilgisayar, gerçek bağlantı noktası ve ana bilgisayar için yer tutuculardır.)
Git yapılandırmamdaki sorun nedir?
git remote set-url origin git@altssh.bitbucket.org:443/yourname/yourrepo/yaramaz. ancak, bunu yaparsan işe git remote set-url origin ssh://git@altssh.bitbucket.org:443/yourname/yourrepo/yarayacak
ssh://önüne açıkça koymazsanız , farklı bir format olduğunu düşünür. böylecessh://example.com:444/etc/ise bağlantı noktası 44 ile example.com / etc / olanexample.com:444/etc/bağlantı 22 üzerinden gerçekleştirilir / 444 / etc / example.com üzerinde