How do you create an ssh key for the apache user on Redhat?

Solution 1:

Ok, I wasn't far off and I found a great resource which steps through the exact steps.

http://www.boredworkers.com/2009/08/24/script-tips-ssh-key-for-apache/

> sudo mkdir /var/www/.ssh
> sudo chown -R apache:nobody /var/www/.ssh
> sudo -u apache ssh-keygen -t rsa

I think I need to investigate the correct switches to use instead of relying on blog posts.