Ubuntu How to login as root in Ubuntu EC2 using WinSCP Login to EC2 instance using PuTTY and run below command: sudo visudo add "ubuntu ALL = (ALL) NOPASSWD: ALL" to the end of the file Edit sudoers Then switch to Winscp and