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

Enhancement: Add official support for being able to define "ssh_key" in Rakefile #1484

Open
e1nh4nd3r opened this issue Jan 25, 2014 · 2 comments

Comments

@e1nh4nd3r
Copy link

Add official support for being able to define "ssh_key" in Rakefile. Not being able to define a specific SSH key for use in conjunction with ssh_user is kind of a pain.

@nickhammond
Copy link
Contributor

SSH config files are great for this, you can tell SSH to use specific keys. You can do something like this in ~/.ssh/config:

Host heroku.personal
  HostName heroku.com
  IdentityFile ~/.ssh/identity.heroku.personal
  IdentitiesOnly yes

http://nerderati.com/2011/03/17/simplify-your-life-with-an-ssh-config-file/

@e1nh4nd3r
Copy link
Author

Totally spaced on this. I suppose I could define a custom ssh config for octopress.deploy and specify the key and then just specify in the Rakefile to use that host instead. I'll give this a shot. Thanks.

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