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
mkdir ~/travis-ci-key && cd ~/travis-ci-key | |
# generate your private key | |
ssh-keygen -t rsa -f travis-ci-key | |
# put the public key on the server you will be connecting to | |
cat travis-ci-key.pub | ssh [email protected] "cat >> ~/.ssh/authorized_keys" | |
# generate the password/secret you will store encrypted in the .travis.yml and use to encrypt your private key | |
cat /dev/urandom | head -c 10000 | openssl sha1 > ./secret |