Top Cat 10 min LEMP root login
-
The Top Cat script worked like a charm but I have a question.
I wanted to be able to login as root post install so I set export PERMITROOTLOGIN=”no” to yes and I commented out export AllowUsers=”AllowUsers $USER”.
Problem is, I can't login as root.
I'm using this address format (with the correct details of course):
ssh -p 65432 root@ipaddressI enter the root password but the message "Permission denied, please try again" appears.
How can I log in as root?
Posted 1 year ago # -
in your sshd file:-
nano /etc/ssh/sshd_config
change
PermitRootLogin no
to
PermitRootLogin yes
and, er, can't remember but you may need to add root to the Allowusers line
but hey .. don't do it! (unless you really have to) .. I have to say that, best advice is never use root, esp to log in. .. only ever sudo.
Posted 1 year ago # -
Thanks. Since I can use sudo -i to become root, I've set things back to the way they should be.
Posted 1 year ago # -
Guv, I also ran the Top Cat script without any hitch but am having similar login problems. I first ran the full top cat script then tried to login as my new user:
ssh -p 45678 newuser@12.34.56.78
I got Permission denied (publickey,password)
I fiddled around for a while then tore down the install (which is fine - I'm learning afterall) and then ran the lite script figuring I'm too noob for the rsa keys just for the moment. But once again trying to login got Permission denied (publickey,password).
here's a bit more of the output anonymized of course
ssh -p 45678 Newuser@12.34.56.78
Newuser@12.34.56.78's password:
Permission denied, please try again.I know that I'm nearly there, but can't figure out what I'm missing.
Posted 1 year ago # -
Anthony .. the old PHP-FPM compilation patch is now obsolete, the script is largely changed now to reflect FPM being in PHP's core .. PHP is installed using modules with this script, so easily maintained as well.
If you redo, don't use the Cat, go Lite.
http://vpsbible.com/vps-setup-guides/stackscripts/lemp-stack-lite-ubuntu-32bit-php-fpm/
You know .. you've probably just added a space somewhere .. the key must all be on one line too .. keys are damn fiddly the first, oh, fifty times :P
Posted 1 year ago #
Reply
You must log in to post.
Want HTML?
a blockquote code em strong ul ol liPlace code between backticks `codeHere`
You've got it.
