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'