Estou configurando meu projeto git local para um repositório remoto. O repositório remoto está sendo servido em uma porta não padrão (4019).
Mas isso não funciona. Em vez disso, recebo a seguinte mensagem de erro:
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'
Minha configuração local do git é a seguinte :
[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
(A porta e o host são espaços reservados para a porta e o host reais.)
O que há de errado com minha configuração do git?
git remote set-url origin git@altssh.bitbucket.org:443/yourname/yourrepo/isso não vai funcionar. mas, se você fizer git remote set-url origin ssh://git@altssh.bitbucket.org:443/yourname/yourrepo/esse trabalho vontade
ssh://na frente do URL, ele achará um formato diferente. assimssh://example.com:444/etc/é / etc / em example.com através da porta 44. Considerando queexample.com:444/etc/é / 444 / etc / example.com através da porta 22.