sudo chmod not working through script

Legends,

I am trying sudo chmod from one shell to different machine. but getting the error.
Please let me know if there is any way to do this.

A#pk} for i in Bl1 Brl1
>> do
>> echo $i
>> ssh $i sudo chmod 755 /etc/services
>> done
Bl1
Password:
bash: sudo: command not found

Help Please

It can't find the 'sudo' command, it either doesn't exist or your PATH is set incorrectly

I would highly suggest you not use 'sudo' in a shell script, it's bad practice

It's probably not in the default search path. Do a manual SSH to the other machine, and use the absolute path reported by

type sudo