I want to login as root and make the / as the default directory in SFTP. Newbie help needed
1 Answer
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
-
1Thanks. I edited the /etc/passwd file to change the root's home directory..– NabilJan 6, 2014 at 12:57
-
-
1