Sure, you can take the time to log into the server ... So, to run a remote command, via ssh, that requires sudo privileges, the ssh command looks like: ssh -t USER@SERVER_IP "sudo COMMAND ...
In such cases, it can be a pain to take the Pi out of the system every ... follow these steps to enable SSH from the command line instead: While you're in the command line, look for the Pi's ...