全球主机交流论坛

标题: 杯具,我的VPS被入侵了... [打印本页]

作者: 老刘    时间: 2013-1-4 03:17
标题: 杯具,我的VPS被入侵了...
一个DS的vps被黑了.

虽然没放什么重要东西,但是重新配置又花了不少时间.

为了安全着想,大家还是修改ssh端口吧.  我反正所有的VPS已经修改

安全第一!!

修改ssh端口方法:
  1. [root@linux ~]# vi /etc/ssh/sshd_config
复制代码
# $OpenBSD: sshd_config,v 1.69 2004/05/23 23:59:53 dtucker Exp $
# This is the sshd server system-wide configuration file. See
# sshd_config(5) for more information.
# This sshd was compiled with PATH=/usr/local/bin:/bin:/usr/bin
# The strategy used for options in the default sshd_config shipped with
# OpenSSH is to specify options with their default value where
# possible, but leave them commented. Uncommented options change a
# default value.
Port 8181  //以前这个前面是有 # 号的,而且默认是 22 ,修改成你喜欢的就ok了
#Protocol 2,1
#ListenAddress 0.0.0.0
#ListenAddress ::
# HostKey for protocol version 1
#HostKey /etc/ssh/ssh_host_key
# HostKeys for protocol version 2
#HostKey /etc/ssh/ssh_host_rsa_key
#HostKey /etc/ssh/ssh_host_dsa_key

作者: alttcn    时间: 2013-1-4 03:22
早就改了。
作者: woyo    时间: 2013-1-4 03:42
你的密码弱密码吗?
作者: comxp    时间: 2013-1-4 07:14
改端口,仅密匙登陆,禁root远程登陆
作者: im286    时间: 2013-1-4 08:02
我是来学习的啊
作者: ccc    时间: 2013-1-4 09:06
来学习
作者: 木叶    时间: 2013-1-4 09:11
提示: 作者被禁止或删除 内容自动屏蔽
作者: meta168    时间: 2013-1-4 09:14
还要禁止ROOT登陆,再IPTABLE限制登陆的IP来源
作者: cfrs2005    时间: 2013-1-4 09:21
提示: 作者被禁止或删除 内容自动屏蔽
作者: ☆校长☆    时间: 2013-1-4 09:22
meta168 发表于 2013-1-4 09:14
还要禁止ROOT登陆,再IPTABLE限制登陆的IP来源

赞一个
作者: paopao00    时间: 2013-1-4 09:28
建议你改用key 认证
作者: dream26    时间: 2013-1-4 09:35
還有密碼, 很多用家只會設定 數字+英文, 這些不算是安全

LrsaDd(KR]~J

密碼用些自己都記不住的比較安全哦.




欢迎光临 全球主机交流论坛 (https://lilynana.eu.org/) Powered by Discuz! X3.4