我总是犯同样的错误,有什么想法吗?
我使用生成了一个没有密码的密钥ssh-keygen
ssh -i /root/.ssh/id_rsa 1**.**.*8.128
localhost 和127.0.0.1
我总是犯同样的错误,有什么想法吗?
我使用生成了一个没有密码的密钥ssh-keygen
ssh -i /root/.ssh/id_rsa 1**.**.*8.128
localhost 和127.0.0.1
提问者在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 user1@server1.example.com
将公钥添加到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/....
将此代码添加到Wordpresswp-config.php
文件临时增加可用内存量:define(\'WP_MEMORY_LIMIT\', \'64M\');
php是否使用ssh支持编译?大多数主机不附带pecl ssh扩展。。
我正在更新wordpress网站上安装的插件。然而,几乎一个小时以来,它仍处于维护模式。当我无意中重装时,我看到了白色的死亡大屏幕,上面写着:\"Briefly unavailable for scheduled maintenance. Check back in a minute.\"我能做些什么来解决这个烂摊子吗?