I want to login as root and make the / as the default directory in SFTP. Newbie help needed
Warning: This method might be unsafe for server users.
Ubuntu doesn't allow root user and also login in ssh as root by default.
So the first thing you have to do is to enable your root user account:
$ sudo passwd root
Now you have got your root account enabled now.
I am not sure whether you have installed your OpenSSH server or not.
So I will teach you how to install OpenSSH server.
$ sudo apt-get install openssh-server
Now you are able to edit the ssh config:
$ sudo vi /etc/ssh/sshd_config
Find the line contains "PermitRootLogin no", modify it to "PermitRootLogin yes".
Oh yeah, now restart the ssh server:
$ sudo service ssh restart
Now give it a try