允许root ssh登陆/修改端口号
1,新建一个用户;
#useradd xxx
2,为新用户设置密码;
#passwd xxx
3,修改sshd配置文件
#vi /etc/ssh/sshd_config
PasswordAuthentication yes #允许用户使用密码进行身份验证
PermitRootLogin yes #设置为允许root用户远程访问
4,查找#Port 22字段删掉#,并将22改为其它端口号。
5,重启sshd服务
#service sshd restart
------山的那一边