I followed the basic Certbot Apache setup instructions (as I have several times before) but I must have made an error somewhere along the way this time. Everything appears to be working correctly with regards to the certificates and renewals themselves, but now, when logging into my server via SSH I am asked to enter a password for sudo access, and then the certbot setup runs, even though certificates are already installed, and upon completing the setup, or cancelling it, the ssh connection is automatically ended.
Is this due to the crontab that was setup? My only guess there is that I possibly set up the cronjob under sudo, but the certbot script is in a user home directory.
Upon logging in via ssh into the server, I am immediately presented with the following prompt:
Requesting root privileges to run certbot... /home/username/.local/share/letsencrypt/bin/letsencrypt [sudo] password for username:
If I cancel the sudo login the SSH session is terminated. If I log in for sudo, and then run through the process, upon confirmation, the SSH session is terminated. Is there a workaround to get around this to edit the cron job to fix this?