August 27, 2018

ubuntu修改ssh远程连接端口号

sudo vim /etc/ssh/sshd_config
# 修改Port后重启
sudo service ssh restart
# 查看监听是否正确
sudo netstat -tunlp | grep ssh