question about how to automaticlly batch modify switch password in freebsd 15.0 ?

Dear all :
i have 20pcs switch . i can login it with password one by one ... now i want to modify 20pcs switch password in the same time . that is batch operation. . can you show me something. ?
i have read more books , don't find a good way..

i have tried to use ssh mulit-command to do that, but it 's not success. thanks.
sshpass -p "dddfffxxxed2" ssh -tt admin@192.168.0.2 << EOF
display ip interface brief
display ip routing-table
EOF
i think that script can't work for me . thanks.

do you know some automatic script and command to do that ? thanks.
 
Back
Top