Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SSH Connection #608

Closed
thadeu opened this issue Feb 28, 2018 · 2 comments
Closed

SSH Connection #608

thadeu opened this issue Feb 28, 2018 · 2 comments

Comments

@thadeu
Copy link

thadeu commented Feb 28, 2018

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?

@mark100net
Copy link

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

@thadeu
Copy link
Author

thadeu commented Mar 5, 2018

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

@thadeu thadeu closed this as completed Mar 5, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants