mina-deploy / mina

Blazing fast deployer and server automation tool

Home Page:https://rubygems.org/gems/mina

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

SSH Connection

thadeu opened this issue · comments

How to use other id_rsa.pub in connection ssh?

eg.

I have some id_rsa_some.pub, I'd like use this file in my deploy.

How to do this?

Since you referenced the .pub file I'm not sure what you are trying to do. That goes on the server (in authorized_keys).

I also wanted to use other than the default key file name so I looked at the code and found that there is already an option for this (after manually copying over the public key file to authorized keys):

In config/deploy.rb:

set :identity_file, '~/.ssh/id_rsa_some' # local full path to private key file

@mark100net That's right! Was that it same, thanks a lot for your help.