Category Archives: 服务器安全

SSH连现时出现「WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED!」解决办法

上周开始试着使用Linode,第一次新建了一个CentOS 7系统image后不知道在装LAMP时哪步出了问题,所以就重装了一下系统。结果在SSH连接时出现如下错误: @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @@@@@@@@@ @ WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED! @ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @@@@@@@@@ IT IS POSSIBLE THAT SOMEONE IS DOING SOMETHING NASTY! Someone could be eavesdropping on you right now (man-in-the-middle attack)! It is also possible that the RSA host key has just been changed. The fingerprint for the RSA key sent by the […]

把网站域名改为子文件夹,不改变URL的方式(.htaccess)

# Change yourdomain.com to be your primary domain. RewriteCond %{HTTP_HOST} ^(www.)?yourprimarydomain.com$ # Change ‘subfolder’ to be the folder you will use for your primary domain. RewriteCond %{REQUEST_URI} !^/subfolder/ # Don’t change this line. RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d # Change ‘subfolder’ to be the folder you will use for your primary domain. RewriteRule ^(.*)$ […]