Ubuntu修改SSH端口
$ sudo vi /etc/ssh/sshd_config
$ sudo /etc/init.d/ssh restart
[ ok ] Restarting ssh (via systemctl): ssh.service.
修改Port值即可如图修改SSH端口为7777
$ sudo vi /etc/ssh/sshd_config
$ sudo /etc/init.d/ssh restart
[ ok ] Restarting ssh (via systemctl): ssh.service.
修改Port值即可如图修改SSH端口为7777