linux 修改ssh端口

vi /etc/ssh/sshd_config

找到

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

修改为自己的 端口号即可
:wq 保存、退出

/etc/init.d/ssh restart

添加新评论