-
Notifications
You must be signed in to change notification settings - Fork 483
[Feature] Agent Forwarding #23
Description
Hi Nadarei,
Agent Forwarding is probably one of the more appealing features of Capistrano. With this option enabled, you won't get this error because it allows you to use your local ssh keys. Normally, like in this case, you have to log in to your server, generate a new SSH key and apply that SSH key to for example Github. Then, this command would work. However with Agent Forwarding you do not need to do that and you can simply use your own local machine's SSH key instead.
-----> Cloning the Git repository
Initialized empty Git repository in /home/deployer/app/tmp/build-1340639447120/.git/
Host key verification failed.
fatal: The remote end hung up unexpectedly
See:
- https://help.github.com/articles/deploying-with-capistrano
- https://help.github.com/articles/using-ssh-agent-forwarding
If you're using your own private keys for git, you want to tell Capistrano to use agent forwarding with this command. Agent forwarding can make key management much simpler as it uses your local keys instead of keys installed on the server.
ssh_options[:forward_agent] = true # in Capistrano
It would be great if Mina could also support this feature as it's always pain to add a new key to GitHub for every single server you want to hook up to it.
Note that I looked around and didn't find the option, but if I overlooked something please let me know.
Cheers,
Michael