Allow password-based SSH login for root

Post Reply
User avatar
isscbta
Team Member
Posts: 133
Joined: Mon Jul 19, 2021 1:41 am
Has thanked: 17 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'

Tags:
Post Reply