我似乎无法使用Git推送到服务器。但是,我可以使用SSH进行连接。
我不知道为什么:
$ cat .git/config
[core]
repositoryformatversion = 0
filemode = true
bare = false
logallrefupdates = true
ignorecase = true
[remote "server_idm"]
url = ssh://username@domain.com[:7555]/home/username/repo_Project/
fetch = +refs/heads/*:refs/remotes/server_idm/*
ssh: Could not resolve hostname domain.com[:7555]: nodename nor servname provided, or not known fatal:
The remote end hung up unexpectedly
Linux servername 2.6.32.9-rscloud #6 SMP Thu Mar 11 14:32:05 UTC 2010 x86_64 GNU/Linux
Ubuntu 10.04 LTS
Welcome to Ubuntu!
Last login: Mon Oct 25 21:22:44 2010 from 8.17.58.38
username@servername Tue Oct 26 14:01:59 ~
$ exit
logout
Connection to domain.com closed.
最佳答案
尝试删除URL中的方括号。
关于git - Git推送错误:ssh:无法解析主机名domain.com [:7555]:提供了节点名或服务名,或者未知,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/4024579/