Cpanel whmapi1 tool notes

Check bandwidth for a user:

whmapi1 showbw searchtype=user search=USERNAME year 2018 month 8

Change account's master domain:

whmapi1 modifyacct user=USERNAME domain=NEWDOMAINNAME

Change username:

whmapi1 modifyacct user=USERNAME newuser=NEWUSERNAME

Change package:

whmapi1 changepackage user=USERNAME pkg=NEWPKG

Show account's info:

whmapi1 accountsummary user USERNAME

Enable shell access:

whmapi1 modifyacct user=USERNAME HASSHELL=1
read -p "Username: " u; whmapi1 modifyacct user=$u HASSHELL=1

Update hostname:

whmapi1 sethostname hostname=HOSTNAME

Generate self signed SSL certificate:

whmapi1 generatessl domains=example.com
Read the rest

Hot to get the RSA key of your server

ssh-keyscan -t rsa YOUR_SERVERs_IP_ADDRESS_OR_HOSTNAME

Output:

# YOUR_SERVERs_IP_ADDRESS_OR_HOSTNAME:22 SSH-2.0-OpenSSH_5.3
YOUR_SERVERs_IP_ADDRESS_OR_HOSTNAME ssh-rsa AAAAB3NzaC1yc...

Check with the several type of the keys:

ssh-keyscan -t rsa1,rsa,dsa,ecdsa,ed25519 YOUR_SERVERs_IP_ADDRESS_OR_HOSTNAME
Read the rest