收藏文章 楼主

ubuntu 修改远程登录端口 sshd_config

版块:linux   类型:普通   作者:小绿叶技术博客   查看:447   回复:0   获赞:0   时间:2021-10-04 13:28:27
vi /etc/ssh/sshd_config


找到port 行,修改为 port 999 

将999端口改为自定义端口


sudo service restart sshd     # 重启sshd

iptables -I INPUT -p tcp --dport 999 -m state --state NEW -j ACCEPT

                                           # 开放防火墙端口 999


服务器开放防火墙端口,参考:https://eisc.cn/index.php?c=read&id=187&page=1

修改端口参考:https://www.cnblogs.com/yuxuan007/p/8064014.html


提供企业建站服务,免费网防系统,提交信息登录 http://yundun.ddoss.cn 邮箱: proposal@ddoss.cn 
回复列表
默认   热门   正序   倒序

回复:ubuntu 修改远程登录端口 sshd_config

头像

用户名:

粉丝数:

签名:

资料 关注 好友 消息