Page 1 of 1

Login as root via ssh, telnet and ftp

Posted: Sat Jun 01, 2013 3:14 pm
by Nyromith
I know, three awful ideas in one title. But I use my pi as a web server for practicing, and security is not a concern.

I configured all three to allow root login, but it only works on ttys. When I'm trying to login from my Debian XFCE terminal or from a Mac the login fails at the password stage. Is there something I should enable to allow a root login from any device?

Thanks.

Re: Login as root via ssh, telnet and ftp

Posted: Sat Jun 01, 2013 3:58 pm
by dehein
You need to give the root account a password? Have you done it?

Code: Select all

sudo passwd root
You should also check your ssh config

Code: Select all

sudo nano /etc/ssh/sshd_config
Search for PermitRootLogin and change it to yes.

Re: Login as root via ssh, telnet and ftp

Posted: Sat Jun 01, 2013 4:12 pm
by rpdom
dehein wrote:You need to give the root account a password? Have you done it?

Code: Select all

sudo passwd root
This should be sufficient.

You should also check your ssh config

Code: Select all

sudo nano /etc/ssh/sshd_config
Search for PermitRootLogin and change it to yes.
That should already be set, I believe. Certainly I've not needed to change it on the Pi I allow remote root ssh login on.

Re: Login as root via ssh, telnet and ftp

Posted: Sat Jun 01, 2013 4:39 pm
by Nyromith
Those things are already configured. The weird thing is that all the services fail after the password prompt, so I suspect the problem is not related to each service individually.

Re: Login as root via ssh, telnet and ftp

Posted: Sun Jun 02, 2013 11:55 am
by pjc123
I can only speak for SSH and sftp, as I don't use the non-secure methods. Other then setting up the root password, as previously mentioned, and setting up the SSH server with raspi-config or manually, it just works for me. The only issue I have had in the past with SSH was that the question that comes up regarding the acceptance of the SSH keys was not displayed, therefore the connection failed. Since all three methods don't work in your case, have you changed anything in the firewall or accept/deny files on the pi, or your router permissions, although I am not sure at what point the connection is prevented (Before the login/password or after).

Re: Login as root via ssh, telnet and ftp

Posted: Mon Jun 03, 2013 7:05 pm
by Nyromith
The problem was that my password consisted of numbers only. Changed it to letters and it was solved.
Maybe it's some kind of a system-wide security policy.

Re: Login as root via ssh, telnet and ftp

Posted: Thu May 01, 2014 10:17 pm
by ayezee33
I was going to suggest this. I had my ssh password contain numbers and the same thing happened to me.