Answer the question
In order to leave comments, you need to log in
ssh access error - is not in the sudoers file. This incident will be reported.?
I installed Centos7.6 + Vestacp
for ssh on the server and created a new user for everyone (except the new one), including root, closed the entrance, only a new user can get through ssh, BUT, ... but I did not add the user to sudo, those. The new user has access via ssh, but he cannot execute commands .. we have the error "" is not in the sudoers file. This incident will be reported. "", for root I closed the entrance.
Can you fix the situation???
=========
In /etc/ssh/sshd_config
AllowUsers NEWUSER
Protocol 2
PermitRootLogin no
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question