/etc/ssh/sshd_config
port 22 //端口
PermitRootLogin yes //改为no即可设为禁止root登陆
修改完成后
sudo service sshd restart
/etc/ssh/sshd_config
port 22 //端口
PermitRootLogin yes //改为no即可设为禁止root登陆
修改完成后
sudo service sshd restart
Copyright © 2016 yjiang's cake