SSH access for a non root user

Operating System & Version
CENTOS 7.8 virtuozzo
cPanel & WHM Version
v88.0.13

chanklish

Well-Known Member
May 22, 2015
77
0
56
kinshasa
cPanel Access Level
Root Administrator
hello awesome people
i am trying to ssh with a user : tarek instead of root
  • I added the user to the wheel group (both from GUI and usermod -aG wheel )
  • gave him access to use sudo without a password ( ALL=(ALL) NOPASSWD:ALL )
  • added an ssh key and used the id as his name
I am able to log with the root key normally but with tarek i am getting this error : no supported authentication methods available
i want to login with tarek and sudo ( i will disable ssh with root )
what should i check ?!
 

Attachments