私はCapistranoの展開に関してかなり奇妙な問題を抱えていますが、私の同僚のマシンはうまく動作しますが、私のものはうまく動作しません。ssh-agent、capistranoとgithubへの転送キー
私はcygwinを使用していて、外部ルビーがインストールされています。
私たちはサーバー上でrootユーザーを使用しており、./ssh/authorized_keys2にssh-keysを追加しました。このキーを使用すると、サーバーにsshをデプロイできます。
サブモジュールをリモートキャッシュに複製しようとすると、問題が明らかになります。私は常にpublickeyが拒否されたエラーを取得します。以下は
デプロイファイルです:
# What is the name of the local application?
set :application, "domain"
# What user is connecting to the remote server?
set :user, "root"
# Where is the local repository?
set :repository, "file:///blah.git"
set :local_repository, " ssh://blah.git"
# What is the production server domain?
role :web, "vserver"
# What remote directory hosts the production website?
set :deploy_to, "/home/<user>/public_html/"
# Is sudo required to manipulate files on the remote server?
set :use_sudo, false
# What version control solution does the project use?
set :scm, :git
set :branch, 'master'
# How are the project files being transferred?
set :deploy_via, :remote_cache
# Maintain a local repository cache. Speeds up the copy process.
set :copy_cache, true
# Ignore any local files?
set :copy_exclude, %w(.git,deployment,.project)
#enabled submodules
set :git_enable_submodules, 1
set :group_writable, false
set :ssh_options, {:forward_agent => true}
私は十分な情報が含まれていません実現し、ちょうど私は私が失敗し、私の同僚は完璧に動作する理由、それはゆっくりと非常識な私を運転しているよう埋める必要なもののギャップを知らせます。どんな援助も素晴らしく、私はここ一日中、さまざまな情報源を探していましたが、何もこの問題を分類していませんでした。