Skip to content

Instantly share code, notes, and snippets.

@NewGyu
Created June 11, 2014 16:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save NewGyu/e8a47e9d028f03142620 to your computer and use it in GitHub Desktop.
Save NewGyu/e8a47e9d028f03142620 to your computer and use it in GitHub Desktop.
capistrano3でssh agent forwarding ref: http://qiita.com/NewGyu/items/285d6d5152e01f0b9497
$ ssh-add -l
2048 f7:07:18:66:97:f0:8f:7b:40:6f:0b:97:98:de:5e:18 /home/newgyu/.ssh/y.pem (RSA)
$ ssh-add /home/newgyu/.ssh/y.pem
set :ssh_options, {
user: 'ec2-user',
keys: %w{~/.ssh/x.pem ~/.ssh/y.pem},
forward_agent: true,
auth_methods: %w{publickey}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment