Create a wheel user for ssh key

samuelmf

Well-Known Member
May 22, 2006
125
6
168
Perú
Hi, i'm trying to transfer the configuration files and a specyfic user backup to another cpanel server through rsync.

I won't use the normal user auth instead i want to use ssh key auth

On the destination server i've created a username and added it to wheel users.

but how can i do to configure that user for a ssh key auth?
 

cPanelLauren

Product Owner
Staff member
Nov 14, 2017
13,295
1,255
313
Houston
A wheel user is a user that is granted the su command though not a sudo user which can be configured in /etc/sudoers - You can read about wheel group users here: Manage Wheel Group Users | cPanel & WHM Documentation - You may need to grant your wheel user sudo permissions.

The SSH key for the user can be configured in the user's cPanel interface. If the user is not a cPanel user you'll need to add the SSH key manually, the following provides pretty basic/easy to follow instructions on how to manually configure an SSH key: How to use ssh-keygen to generate a new SSH key

Do ensure that the SSH key is accessible to the user that you've created it in
 

samuelmf

Well-Known Member
May 22, 2006
125
6
168
Perú
Thanks for reply Lauren i have this situation:
On destination server (where i will store backup) i've created an account with useradd command, set it a password and put that created user on wheel users (i dont know if this its neccesary or not).
Where i must to create the ssh keys on the destination or on the origin?

Help me please because i'm newbie on the ssh key configurations.
Thanks in advance