我似乎无法使用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/*
$ git push 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 username@domain.com
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.
答案 0 :(得分:3)
尝试删除网址中的方括号。