System environment:
centos7
Specific method:
Execute with root permissions
vim /etc/ssh/sshd_config
Will
#PermitRootLogin yes
Remove the "#" in this line and change it to:
PermitRootLogin yes
Recommended tutorial: centos tutorial
The above is the detailed content of How to enable remote access in centos. For more information, please follow other related articles on the PHP Chinese website!