
Enable root login with password of AWS EC2/Lightsail Instance
1. In terminal, first run Code: 2. Then edit sshd config Code: 3. Find these lines #PermitRootLogin prohibit-passwordPasswordAuthentication no Change them respectively to these PermitRootLogin yesPasswordAuthentication yes note: uncomment or remove the “#” character Ctrl+X then Y then Enter to exit 4. Then restart sshd Code: 5. Set password for root Code: Enter your desired…