1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
| ssh-keygen -t rsa -C "xingor4@gmail.com"
$ travis encrypt-file ~/.ssh/id_rsa --add
Detected repository as xxx/xxx, is this correct? |yes| yes encrypting ~/.ssh/id_rsa for xxx/xxx storing result as id_rsa.enc storing secure env variables for decryption
Make sure to add id_rsa.enc to the git repository. Make sure not to add ~/.ssh/id_rsa to the git repository. Commit all changes to your .travis.yml.
ssh-copy-id -i deploy_rsa.pub <ssh-user>@<deploy-host>
git add id_rsa.enc .travis.yml
|