원격 저장소에 대한 로컬 git 프로젝트를 설정하고 있습니다. 원격 저장소가 비표준 포트 (4019)에서 제공되고 있습니다.
하지만 작동하지 않습니다. 대신 다음과 같은 오류 메시지가 표시됩니다.
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'
내 로컬 자식 구성은 다음과 같습니다 .
[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
(포트와 호스트는 실제 포트와 호스트에 대한 자리 표시 자입니다.)
내 자식 구성에 어떤 문제가 있습니까?
git remote set-url origin git@altssh.bitbucket.org:443/yourname/yourrepo/그것을 할 경우 작동 하지 않습니다. 하지만, 당신이 할 경우 git remote set-url origin ssh://git@altssh.bitbucket.org:443/yourname/yourrepo/이 의지 작업
ssh://URL 앞에 명시 적으로 입력하지 않으면 다른 형식으로 간주됩니다. 그래서ssh://example.com:444/etc/반면 포트 (44)를 통해 example.com의 / etc / 인example.com:444/etc/포트 (22) 경유 / 444은 / etc / example.com에