Table of contents
1--Modify the configuration file
1--Modify the configuration file
vim /etc/ssh/sshd_config
2--Logout code
① Logout:
Subsystem sftp /usr/libexec/openssh/sftp-server
② Change to:
Subsystem sftp internal-sftp
3--Change the code
PermitRootLogin no
# 更改为:
PermitRootLogin yes
4--Restart the service
/etc/init.d/ssh restart