원격 저장소에 대한 내 로컬 자식 프로젝트를 설정 중입니다. 원격 저장소가 비표준 포트 (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://[email protected]:4019/var/cache/git/project.git'
내 지역의 자식 설정이 as follows입니다 : 대신 나는 다음과 같은 오류 메시지가 얻을. (포트 및 호스트 실제 포트 및 호스트에 대한 자리 표시 자)
[core]
repositoryformatversion = 0
filemode = true
bare = false
logallrefupdates = true
[remote "origin"]
url = ssh://[email protected]:4019/var/cache/git/project.git
fetch = +refs/heads/*:refs/remotes/origin/*
[branch "master"]
remote = origin
merge = refs/heads/master
을
은 무엇인가 내 자식 구성에 문제가 있습니까?
Host githost
HostName git.host.de
Port 4019
User root
는 다음 기본 구문을 사용할 수 있어야합니다 : 당신이 당신의 .ssh/config
이 같은 뭔가를 넣으면
y ou는 명시 적으로'ssh : //'를 URL 앞에 두지 않는다. 그것은 다른 형식이라고 생각한다. 그래서'example.com : 444/etc /'는 port를 통해 example.com의/444/etc /이다. "ssh : //example.com : 444/etc /'는 example.com의/etc/port이다. 22. – Kzqai
@Kzqai 발언이 중요합니다. git remote set-url origin 인 경우 [email protected] : 443/yourname/yourrepo /'작동하지 않습니다. 하지만'git remote set-url origin ssh : //[email protected] : 443/yourname/yourrepo /'이 동작 할 것입니다. – oak
Google-fu의 경우 - 내가 가지고있을 때 phabricator에이 문제가있었습니다. 2222의 비 기본 포트로 설정되었습니다. 이제 정렬되었습니다! – user3791372