How To Enable Root Login In SSH Config
We do disable root login on the server from ssh config file because of security reasons. So if you want to enable root login in ssh config., you must follow the below settings.
you can use ssh key to login the server then switch to root user. we don’t give root user access to anyone but we can give server access using ssh key to login.
By default, ssh installed on the machine. you can also change the ssh port number default 22 to other port number. All the server side configuration need to be change in sshd_config.
Step 1 : Enable login in ssh config file
Step 2 : Now enable password authentication for user.
Step 3 : if u are till not able to login using root user, So add these line in sshd_config file.
Step 4 : restart the ssh service to take the effects.
systemctl restart sshd