Allow password-based SSH login for root

Post Reply
User avatar
Team Member
Posts: 131
Joined: Mon Jul 19, 2021 1:41 am
Has thanked: 16 times
Been thanked: 3 times

In your SSH, as root, run:

Code: Select all

sed -i "s|^PermitRootLogin .*|PermitRootLogin yes|g" /etc/ssh/sshd_config
sed -i "s|^#PermitRootLogin .*|PermitRootLogin yes|g" /etc/ssh/sshd_config
grep 'PermitRoot' /etc/ssh/sshd_config
systemctl restart sshd
To allow root password authentication via SSH and set the root password to match the password for the admin account - run:

Code: Select all

v-commander 'enable-ssh-root-password-login' 'q'

Post Reply