document.write('
Data hosted with ♥ by Pastebin.com - Download Raw - See Original
  1. ##Reemplazamos la linea 37
  2.  
  3. echo "Usage: $0 [-i [identity_file]] [user@]machine" >&2
  4.  
  5. ##Por esta donde agregamos a la ayuda la opciĆ³n -p
  6.  
  7. echo "Usage: $0 [-i [identity_file]] [user@]machine -p port (Default 22)" >&2
  8.  
  9.  
  10. ## Luego Borramos la linea 41
  11.  
  12. { eval "$GET_ID" ; } | ssh ${1%:} "umask 077; test -d .ssh || mkdir .ssh ; cat >> .ssh/authorized_keys" || exit 1
  13.  
  14. ## Y la reemplazamos por estas lineas
  15.  
  16. if [ "$2" = "" ]; then
  17.  
  18.                 { eval "$GET_ID" ; } | ssh ${1%:} "umask 077; test -d .ssh || mkdir .ssh ; cat >> .ssh/authorized_keys" || exit 1
  19.         else
  20.                 { eval "$GET_ID" ; } | ssh $2 $3 ${1%:} "umask 077; test -d .ssh || mkdir .ssh ; cat >> .ssh/authorized_keys" || exit 1
  21. fi
');