【发布时间】:2015-10-29 09:41:39
【问题描述】:
我在使用 Mina 部署时遇到这样的消息,但不确定为什么 Git 无法提取 repo。
由于Unable to negotiate a key exchange method 消息,我尝试切换 sshd_config,但仍然无法解决问题。感谢您的帮助。
-----> Creating a temporary build path
$ touch "deploy.lock"
$ mkdir -p "$build_path"
$ cd "$build_path"
-----> Cloning the Git repository
$ git clone "git@github.com:repo/project.git" "/home/deploy/project/scm" --bare
Cloning into bare repository '/home/deploy/project/scm'...
Unable to negotiate a key exchange method
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
! ERROR: Deploy failed.
-----> Cleaning up build
$ rm -rf "$build_path"
Unlinking current
$ rm -f "deploy.lock"
OK
! Command failed.
Failed with status 1 (19)
【问题讨论】:
标签: ruby-on-rails git ubuntu deployment ssh