首页 > Linux相关 > linux安全之更改ssh端口 更改vsftp端口

linux安全之更改ssh端口 更改vsftp端口

2011年11月24日   分享到QQ微博   分享到新浪微博 发表评论 阅读评论

玩linxu的ssh是必备,默认22端口其实也没啥,如果你的口令不是很强大,那就有必要改改了。

直奔主题:

修改文件  /etc/ssh/sshd_config 第四行  port 22  改为你自定端口。

# Package generated configuration file
# See the sshd_config(5) manpage for details

# What ports, IPs and protocols we listen for
Port 22

然后重启SSH服务生效。

/etc/init.d/ssh restart

Linux上ftp服务端大多都用的vsftp,更改端口比较简单。

修改 /etc/vsftp.conf 文件  在其中加入 listen_port=2121  (2121为你自定端口)

PS:本站文章可自由转载,转载请注明:转载自 zhaojiyu's Blog

  1. 本文目前尚无任何评论.