小编Man*_*olo的帖子

使用 php-5.5.1 在 apache2 VPS 中安装 APC 时出错

当我安装 APC 时:

pecl install apc
Run Code Online (Sandbox Code Playgroud)

我收到此错误:

Reading package lists... Done
Building dependency tree       
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 apache2-prefork-dev : Depends: apache2.2-common (= 2.2.22-1ubuntu1.4) but it …
Run Code Online (Sandbox Code Playgroud)

php5 apache-2.2 alternative-php-cache

6
推荐指数
1
解决办法
1万
查看次数

通过 ssh 连接到我的 VPS 时出现“违规密钥”警告

当我执行:

ssh root@myVPS
Run Code Online (Sandbox Code Playgroud)

我收到下一个警告:

Warning: the RSA host key for 'myVPS' differs from the key for the IP address 'xxx.xx.xxx.xx'
Offending key for IP in /home/manolo/.ssh/known_hosts:1
Matching host key in /home/manolo/.ssh/known_hosts:2
Are you sure you want to continue connecting (yes/no)?
Run Code Online (Sandbox Code Playgroud)

如果我输入“是”,我工作正常,但我不知道为什么会抛出这个警告。关于为什么抛出它以及如何避免它的任何建议?

linux ssh

6
推荐指数
1
解决办法
2万
查看次数

更改私钥上的 ssh 密码没有任何效果

我有一个不受密码保护的ssh 密钥,我用它来连接服务器。现在我想向密钥添加一个密码,所以我已经完成了:

ssh-keygen -p
Run Code Online (Sandbox Code Playgroud)

并添加了一个新的密码:

Enter file in which the key is (/home/user/.ssh/id_rsa): 
Enter old passphrase: 
Key has comment '/home/user/.ssh/id_rsa'
Enter new passphrase (empty for no passphrase): 
Enter same passphrase again: 
Your identification has been saved with the new passphrase.
Run Code Online (Sandbox Code Playgroud)

然后,我尝试再次连接到服务器:

ssh user@server.com -v
Run Code Online (Sandbox Code Playgroud)

但我仍然在未输入密码的情况下登录:

debug1:可以继续的身份验证:publickey

debug1:下一个身份验证方法:publickey

debug1:提供RSA公钥:/home/user/.ssh/id_rsa

debug1:服务器接受密钥:pkalg ssh-rsa blen 279

debug1:身份验证成功(公钥)。

已通过 server.com ([xxx.xx.xxx.xx]:22) 验证。

为什么我没有被要求输入密码?

编辑:

Seahorse为我存储了密钥,所以这就是问题所在。

ssh ssh-keygen

2
推荐指数
1
解决办法
4881
查看次数