EADST

Linux Root Access & SSH Setup

Change Root Password

sudo passwd root

Enable Root SSH Login

  1. Check SSH config:

    sudo cat /etc/ssh/sshd_config | grep Root
    

  2. Edit config:

    sudo vi /etc/ssh/sshd_config   # Change: PermitRootLogin no -> yes
    

  3. Restart SSH:

    sudo systemctl restart sshd
    

Test Login

ssh root@server_ip

Note: Ensure strong passwords and regular security updates.

相关标签
About Me
XD
Goals determine what you are going to be.
Category
标签云
站点统计

本站现有博文275篇,共被浏览494007

本站已经建立2082天!

热门文章
文章归档
回到顶部