How to connect unix server to unix server through shell scripts

Hi,
I would like to connect UNIX server to UNIX server through shell scripts
and i have some concepts . But i am totally confused how to connect UNIX
server to UNIX server throuth running a script. It will be greatful to me if
any buddy will help me.

Thanks in advance.
Phatan:)

man ssh

One example of ssh, where syslist will contain all the names of unix servers you want to connect

    for i in $syslist
    do
        ssh2 -q $i 'pr=0;flSy=" ";
              for j in `bdf /claims | tail -1 | sed "s/%//g" | tr -s " " | sed "s/ /-/g"`
              do
                prUs=`echo $j | cut -d "-" -f5`
                if [[ $prUs -ge 70 ]]
                then
                  flSy="${flSy}`echo $j | cut -d "-" -f6`";
                  if [[ $pr -eq 0 ]]
                  then
                    pr=1;
                  fi;
                fi
              done;
              if [[ $pr -eq 1 ]]
              then
                echo "`uname -n`:";
                bdf $flSy
                echo "-----------------------------------------------------------";
              fi'
    done

Hi,

well i think it depends for what you want to connect to other machines. Is to run commands or simply copy or sync files??