Im trying to execute 2 commands in 12 different servers using a loop. When i try to do it remotly my sequence fails and it just iterate using i=12. Do I need some scape character?
ssh 10.10.10.10 "for i in {01..12}; do modpkg -e -n host-prv$i; runpkg -n host-prv$i; done"
UPDATE - worked after using single quotes - thanks @dave_thompson_085
ssh 10.10.10.10 'for i in {01..12}; do modpkg -e -n host-prv$i; runpkg -n host-prv$i; done'