I'm connecting to my cloud server (OVH) using SSH key and now I'm trying to restart apache and gets this error:
ubuntu@server-1:~$ service apache2 reload
==== AUTHENTICATING FOR org.freedesktop.systemd1.manage-units ===
Authentication is required to reload 'apache2.service'.
Authenticating as: Ubuntu (ubuntu)
Password:
polkit-agent-helper-1: pam_authenticate failed: Authentication failure
==== AUTHENTICATION FAILED ===
Failed to reload apache2.service: Access denied
See system logs and 'systemctl status apache2.service' for details.
How to solve it?
ubuntuuser have? Did you try to reload the service with root permissions, for example usingsudo? – Henning Kockerbeck Nov 01 '16 at 22:56sudo: unable to resolve host server-1. And about ubuntu idk, it just gave me this login once server were created – Sandra Nov 01 '16 at 22:58Please login as the user "ubuntu" rather than the user "root".– Sandra Nov 01 '16 at 22:58unable to resolve host server-1is concerned, this might help you: http://askubuntu.com/questions/59458/error-message-when-i-run-sudo-unable-to-resolve-host-none But you may be unable to edit the respective files and set the host name. Maybe you should ask OVHs support, they'd know their specific setup best. – Henning Kockerbeck Nov 01 '16 at 23:36