asgrim/godeploy — Issue #104: Better handling of SSH keys
Author: asgrim
Created: 2011-10-13 10:02:09+00:00
State: open
Labels: improvement

I noticed that FishEye uses ssh -i which apparently sets which private key to use. This will save having to set the "HOME" environment variable in Apache, and also having to output ssh keys into /var/www/.ssh

WINNER!

This is what FishEye does:

/usr/bin/ssh
-i /opt/fecru-2.6.0/data/auth/Libs
-C
-o StrictHostKeyChecking=no
-o PasswordAuthentication=no
-o UserKnownHostsFile=/dev/null
[HOSTNAME]
[GIT_COMMAND]

-i = path to PRIVATE key
-C = compression
-o = option followed by key/value