DevCEDTeam / CED

0 stars 0 forks source link

WHM Terminal #102

Open DevCEDTeam opened 9 months ago

DevCEDTeam commented 9 months ago

WHM Terminal sudo -u mautic

To login as the sudo root user, you can use the following command: sudo su -

If you need to run a command or script with elevated privileges, you can use the sudo command followed by the command you want to run. For example: sudo apt-get update

DevCEDTeam commented 8 months ago

WHM diagnostic tool:

[root@team ~]# /scripts/restartsrv_sshd --status
[root@team ~]# perl <(curl -s https://ssp.cpanel.net/ssp) --sshcheck
[root@team ~]# /usr/local/cpanel/3rdparty/bin/perl <(curl -s https://ssp.cpanel.net/ssp) --sshcheck

i.e.,

/usr/local/cpanel/3rdparty/bin/perl <(curl -s https://ssp.cpanel.net/ssp) --sshcheck
Current sshd configuration (sshd -T):
Found open : SSH port "49160

perl <(curl -s https://ssp.cpanel.net/ssp) --sshcheck

DevCEDTeam commented 8 months ago

WHM/root cat /var/cpanel/userdata/admin6/main

cPanel / certified SSL certificates uapi DomainInfo list_domains|egrep '^\s+-'

WHM/ certified SSL certificates uapi --user=admin6 DomainInfo list_domains|egrep '^\s+-'