/etc 目录用于存储系统的配置文件
ls /etc/ssh/
moduli sshd_config.d ssh_host_ecdsa_key.pub ssh_host_rsa_key.pub
ssh_config ssh_host_dsa_key ssh_host_ed25519_key ssh_import_id
ssh_config.d ssh_host_dsa_key.pub ssh_host_ed25519_key.pub
sshd_config ssh_host_ecdsa_key ssh_host_rsa_key
su - root
vim /etc/ssh/sshd_config
#PermitRootLogin prohibit-password
PermitRootLogin yes
systemctl status ssh 查看服务状态
systemctl restart ssh 重启服务
注
ssh.service 是 openssh 的服务名称