我刚刚使用 ubuntu 14.04 x64 创建了一个数字海洋服务器。
创建后,我设置了 ssh 访问权限,并下载了 dokku(需要运行命令两次,但这是一个常见问题)
Command:
wget -qO- https://raw.github.com/progrium/dokku/v0.2.3/bootstrap.sh | sudo DOKKU_TAG=v0.2.3 bash
然后,在本地,我尝试连接本地存储库并将代码推送到新服务器中:
$ git remote set-url amsterdam git@**.**.**.**
$ git push amsterdam master
fatal: 'git@**.**.**.**' does not appear to be a git repository
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
那么,我错过了什么?
--> 请注意,我是新人,这应该是一个非常基本的问题
EDIT:
起初,当我尝试添加新的遥控器时,我输入了以下内容:
git remote set-url amsterdam dokku@**.**.**.**
但遇到了同样的错误,这就是为什么我尝试使用git@...
EDIT 2:
我刚刚发现了一些奇怪的事情。
当我在 root 中执行 ls 时,我得到一个名为 的文件夹dokku
,但我这样做:
cd ..
ls /home
I get dokku
又是一样,只是内容不一样。
在 /home/dokku 我有这个:
drwxr-xr-x 3 dokku root 4096 May 23 10:34 .
drwxr-xr-x 3 root root 4096 May 23 10:31 ..
-rw-r--r-- 1 root root 8 May 23 10:33 HOSTNAME
drwxr-xr-x 2 dokku root 4096 May 23 10:31 .ssh
-rw-r--r-- 1 dokku root 21 May 23 10:31 .sshcommand
-rw-r--r-- 1 root root 7 May 23 10:34 VERSION
但在 /root/dokku 中我有这个:
drwxr-xr-x 7 root root 4096 May 23 10:31 .
drwx------ 5 root root 4096 May 23 10:31 ..
-rw-r--r-- 1 root root 767 May 23 10:31 AUTHORS
-rw-r--r-- 1 root root 823 May 23 10:31 bootstrap.sh
drwxr-xr-x 2 root root 4096 May 23 10:31 contrib
drwxr-xr-x 2 root root 4096 May 23 10:31 docs
-rwxr-xr-x 1 root root 3218 May 23 10:31 dokku
-rw-r--r-- 1 root root 1224 May 23 10:31 dokku.1
drwxr-xr-x 8 root root 4096 May 23 10:31 .git
-rw-r--r-- 1 root root 29 May 23 10:31 .gitignore
-rw-r--r-- 1 root root 813 May 23 10:31 HISTORY.md
-rw-r--r-- 1 root root 1056 May 23 10:31 LICENSE
-rw-r--r-- 1 root root 2330 May 23 10:31 Makefile
drwxr-xr-x 7 root root 4096 May 23 10:31 plugins
-rw-r--r-- 1 root root 9092 May 23 10:31 README.md
-rw-r--r-- 1 root root 1087 May 23 10:31 .s3cfg
drwxr-xr-x 4 root root 4096 May 23 10:31 tests
-rw-r--r-- 1 root root 486 May 23 10:31 .travis.yml
-rw-r--r-- 1 root root 1377 五月 23 10:31 Vagrantfile