Page 1 of 1

Allow password-based SSH login for root

Posted: Thu Feb 09, 2023 10:57 am
by isscbta
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'