I have a github account that I would like to push to on a regular basis from an Amazon ec2 instance. In order to connect to the github account I have an SSH key that's passphrase protected, so in order to push to or pull from github I have to enter in my passphrase from the command line. The problem is that I'm trying to write a cron script to push certain files to github every day in the morning, which makes the passphrase entering problematic.
From what I understand researching so far, in order to automate the passphrase entry for the rsa_id I need to add the passphrase to an ssh-agent, and also use a keychain (if I'm misunderstanding please let me know!) Although I was able to figure out how to add the passphrase to an ssh-agent, I've run into a problem with the keychain part of the process. Keychain doesn't appear to come installed on the ec2 server, and when I tried to run "yum install keychain" I got an error saying that there wasn't an available repository for it. I searched online and saw that the repository (RPMForge) seems to be available for CentOS and RHEL distributions, but I'm hesitant to install on EC2 (which is Amazon AMI Linux) not knowing if it'll work, or even potentially cause issues for the system.
If anyone knows if this is safe to do, or if I'm moving in the right direction it would be much appreciated, thanks very much!