2012-02-29 7 views
0

私はCapistrano(私は今日まで使用したことのない)で展開しようとしているRailsアプリケーションを持っています。 cap deployを実行すると、私はDNSスプーフィングの警告を受け取ります。私は出力hereを貼り付けました。CapistranoはSSHだけでもうまくいくかもしれないのにDNSスプーフィングの警告を出します

~/.ssh/known_hostsを削除しても、私はまだなりすましの警告を受け取ります。また、私は偽装の警告なしに、私のサーバーにSSHで接続できます。 (私はRSAキーを設定しています)

これはなぜ起こっているのでしょうか?ここに私のconfig/deploy.rbです:

ssh://[email protected]/var/git/snip.gitから、あなたのレポのクローンを作成するとき

require "bundler/capistrano" 

set :user, "jason" 
set :domain, "sniphq.com" 
set :application, "Snip" 
set :repository, "ssh://[email protected]/var/git/snip.git" 

set :scm, "git" 
set :branch, "master" 
set :git_shallow_clone, true 
set :scm_verbose, true 

role :web, domain       # Your HTTP server, Apache/etc 
role :app, domain       # This may be the same as your `Web` server 
role :db, domain, :primary => true # This is where Rails migrations will run 

set :deploy_to, "/home/jason/snip-cap" 
set :deploy_via, :export 

# if you're still using the script/reaper helper you will need 
# these http://github.com/rails/irs_process_scripts 

# If you are using Passenger mod_rails uncomment this: 
namespace :deploy do 
    task :start do ; end 
    task :stop do ; end 
    task :restart, :roles => :app, :except => { :no_release => true } do 
    run "#{try_sudo} touch #{File.join(current_path,'tmp','restart.txt')}" 
    end 
end 

答えて

0

サーバーにsniphq.com自体にアクセスしようとしています。

known_hostsにその名前に異なるipが含まれていると、警告が表示されることがあります。

サーバ上で/home/jason/.ssh/known_hostsを削除してみるか、そこで3行目を削除してください。

+0

修正済みです。ありがとう。 –

+0

また、 'ssh:// jason @ sniphq.com/var/git/snip.git'から'/var/git/snip.git'に変更しました。それはサーバーSSHを持っているのが変だと感じています。それはちょうどいいです。 –

+0

別のサーバーにも展開しているかどうかはわかりませんでした。その後、それは意味をなさないでしょう。 – iltempo

関連する問題