Saturday, March 19, 2016

You can't visit VPS use root, By PermitRootLogin no

How to resolve this question!

I use other user login
For exemple like this:

ssh username@ip

su -
input root password

whoami 

root.


you can cd etc/ssh/

Now you can set ssh_config
PermitRootLogin yes

Just input
/etc/init.d/sshd restart

No comments:

Post a Comment