Created
June 11, 2014 16:10
-
-
Save NewGyu/e8a47e9d028f03142620 to your computer and use it in GitHub Desktop.
capistrano3でssh agent forwarding ref: http://qiita.com/NewGyu/items/285d6d5152e01f0b9497
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ 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) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ ssh-add /home/newgyu/.ssh/y.pem |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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