Estoy configurando mi proyecto git local para un repositorio remoto. El repositorio remoto se sirve en un puerto no estándar (4019).
Pero no funciona. En su lugar, recibo el siguiente mensaje de error:
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'
Mi configuración local de git es la siguiente :
[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
(El puerto y el host son marcadores de posición para el puerto y el host reales).
¿Qué hay de malo en mi configuración de git?
git remote set-url origin git@altssh.bitbucket.org:443/yourname/yourrepo/no funcionará. pero, si haces git remote set-url origin ssh://git@altssh.bitbucket.org:443/yourname/yourrepo/esto, funcionará
ssh://delante de la url, cree que es un formato diferente. también lossh://example.com:444/etc/es / etc / en example.com a través del puerto 44. Mientras queexample.com:444/etc/es / 444 / etc / en example.com a través del puerto 22.