赞
踩
vim /etc/ssh/sshd_config
# 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 22
Port 3300
# 1. 重启的第一种方法
systemctl restart sshd.service
# 2. 重启的第二种方法
/etc/init.d/sshd restart
# 3. 重启的第三种方法
service sshd restart
netstat -ntpl | grep 3300
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。