My deploy.rb file is
lock '3.2.1'
set :application, 'my_app'
set :repo_url, 'path_to_git_repo.git'
set :deploy_user, 'root'
set :deploy_to, '/var/www'
set :branch, 'master-final_code'
set :scm, :git
set :deploy_via, :copy
set :format, :pretty
set :stages, ["staging"]
set :log_level, :debug
set :pty, true
my staging.rb is
set :stage, :staging
role :app, %w{root@my_ip_add}
%w{[root]}
server 'my_ip_add', user: 'root', roles: %w{app}
set :ssh_options, {
forward_agent: false,
auth_methods: %w(password),
password: 'my_pass',
user: 'root'
}
Getting error:
Permission denied (publickey,keyboard-interactive).
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
What should i do in this case? Should i edit config. of deploy.rb or staging.rb? Or is there any problem of ssh key?