I keep getting the same error, any ideas?
- I have generated a key without a password using
ssh-keygen
- I set permissions on the keys to 600
- I have successfully logged in using
ssh -i /root/.ssh/id_rsa 1**.**.*8.128
- I have tried changing hostname to
localhost
and127.0.0.1
The server is running CentOS 5.4.
This is likely because your web server is not running as root and therefore doesn't have access to file's in
/root/
. Runps
on the host and grep for the server process name to see the username. It may well be something likenobody
. If that's the case, I would suggest generating a key specifically for use by the web server and thenchown
ing it to the user the server runs as. Hopefully this will solve your problem :)Here is the full solution, thanks to michaelmior for his help, it got me half way.
Run this command to generate keys:
ssh-keygen
You'll get this output:
Add the public key to your
authorized_keys
fileMove the
id_rsa
andid_rsa.pub
to/usr/local
chown
the files to the same user as your webserver (in my case apache)chmod
the files to 600:chmod 600 id_rsa*
This should now work.
However, my installation kept hanging, a quick look at the httpd error_log file show me:
Adding this code to the Wordpress
wp-config.php
file to temporally increase the amount of memory available: