I've installed the sudo package and it acts correctly on my host, but when I want to use in ssh:
Code:
ssh check@192.168.40.8 'sudo service cron restart'
the error is shown:
sudo: unable to resolve host RSU-5-23
Restarting periodic command scheduler: cronStopping periodic command scheduler: cron.
Starting periodic command scheduler: cron.