First thing you have to do is supply a password for the root user. To do this, log in as the default Pi user and run:
which will give you a root privilege shell.
Next set a password for the root user:
Code: Select all
passwd <whatever password you like>
and repeat it when asked.
You can now "go" to the root user from your ordinary user any time you like, just run
and give the root password you chose earlier
Once you have a root password, then you must use your new found root access

to edit the file
note the d - it's ssh
d_config, not ssh_config. Then change the line to read as follows (if you're ready to use a root shell, then you don't need instructions on using an editor)
Then restart the sshd service (you do know how to do that, don't you? If not you shouldn't be playing with root level commands.
After this you can ssh in as the root user.