Help for this page

Select Code to Download


  1. or download this
    #!/bin/sh
    prog=`basename $0`
    ...
    ssh -l $RUSER $RH "sh -c \"if [ ! -d .ssh ]; then mkdir .ssh; fi && cd
    + .ssh && if [ -e authorized_keys ] ; then cat >> authorized_keys; els
    +e cat > authorized_keys; fi \"" < id_dsa.pub
    
    ssh $RUSER@$RH hostname