This is for those who have setup their new Ubuntu server & find that they cannot login as root with programs such as putty & winscp. This will remove the need for the sudo-i command and allow you to run these programs as easily as they do on Debian ect.
To enable root access type the following commands
And this if you want to disable root access again use this.
#######Update#########
Newer versions of ubuntu may require these commands:
edit line 28 from...
PermitRootLogin without-password
to
PermitRootLogin yes
Save changes and exit...Then restart SSH...
Quote
If you want to save the changes you've made, press Ctrl + O . To exit nano, type Ctrl + X . If you ask nano to exit from a modified file, it will ask you if you want to save it. Just press Y
The attached sshd_config has already been edited...
#######Update For 16.04.X and Latest Releases#########