查看系统的IP地址
[ruan@localhost ~]$ ip address
打开目录
[ruan@localhost ~]$ cd /etc/ssh/
查看目录中有哪些文件夹或者文件
[ruan@localhost ssh]r$ ls
打开文件
[root@localhost sshd_config.d]# vim /etc/ssh/sshd_config
修改文件中的PermitRootLogin后面的为yes
PermiRootLogin yes
保存退出
先按ecs,再按“:wq”
重启功能
[root@localhost sshd_config.d]# systemctl restart sshd
停止功能
[root@localhost sshd_config.d]# systemctl stop sshd
启动功能
[root@localhost sshd_config.d]# systemctl start sshd
设置开机启动功能
[root@localhost sshd_config.d]# systemctl enable sshd
完整的运行图