Allow password-based SSH login for root
Posted: Thu Feb 09, 2023 10:57 am
In your SSH, as root, run:
To allow root password authentication via SSH and set the root password to match the password for the admin account - 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
Code: Select all
v-commander 'enable-ssh-root-password-login' 'q'