Git推送错误:ssh:无法解析主机名domain.com [:7555]:节点名或服务名已提供或未知

问题描述:

我似乎无法使用Git推送到服务器。不过,我可以通过SSH连接到这个盒子。
我想不通为什么:Git推送错误:ssh:无法解析主机名domain.com [:7555]:节点名或服务名已提供或未知

$ cat .git/config 
[core] 
    repositoryformatversion = 0 
    filemode = true 
    bare = false 
    logallrefupdates = true 
    ignorecase = true 
[remote "server_idm"] 
    url = ssh://[email protected][:7555]/home/username/repo_Project/ 
    fetch = +refs/heads/*:refs/remotes/server_idm/* 

$混帐推server_idm

ssh: Could not resolve hostname domain.com[:7555]: nodename nor servname provided, or not known fatal: 
The remote end hung up unexpectedly 

不过,我可以很容易地SSH的框。
$的ssh -p 7555 [email protected]

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 
[email protected] Tue Oct 26 14:01:59 ~ 
$ exit 
logout 
Connection to domain.com closed. 

尝试在网址中删除的方括号。

+3

在文档[]中通常意味着“该位是可选的” – 2010-10-26 14:47:50