2010-10-26 36 views
1

我似乎無法使用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

嘗試在網址中刪除的方括號。

+3

在文檔[]中通常意味着「該位是可選的」 – 2010-10-26 14:47:50

相關問題