Linux 修改 ssh 端口

时间:2021-01-13 10:51:14   收藏:0   阅读:0

edit config && add Port 2222

vi /etc/ssh/sshd_config 

重启ssh服务

systemctl restart sshd.service

查看端口

sudo netstat -atlunp | grep sshd
评论(0
© 2014 mamicode.com 版权所有 京ICP备13008772号-2  联系我们:gaon5@hotmail.com
迷上了代码!