提问者在ServerFault上回答了这个问题。我把他的答案作为社区维基添加到这里。
以下是完整的解决方案,感谢michaelmior 因为他的帮助,我才成功了一半。
运行此命令以生成密钥:ssh-keygen
您将获得以下输出:
Generating public/private rsa key pair.
Enter file in which to save the key (/home/user1/.ssh/id_rsa):
Created directory ‘/home/user1/.ssh’.
Enter passphrase (empty for no passphrase): (just hit enter, no need for a password)
Enter same passphrase again: (same thing, hit enter again)
Your identification has been saved in /home/user1/.ssh/id_rsa.
Your public key has been saved in /home/user1/.ssh/id_rsa.pub.
The key fingerprint is:
xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx [email protected]
将公钥添加到
authorized_keys
文件
移动id_rsa
和id_rsa.pub
到/usr/local
chown
将文件发送给与Web服务器相同的用户(在我的示例中是apache)chmod
文件到600:chmod 600 id_rsa*
现在应该可以了。
但是,我的安装一直挂起,快速查看httpd error\\u日志文件可以看到:
PHP Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 2966269 bytes) in /var/www/sites/....
将此代码添加到Wordpress
wp-config.php
文件临时增加可用内存量:
define(\'WP_MEMORY_LIMIT\', \'64M\');