Changeset 273d110


Ignore:
Timestamp:
09/27/13 00:10:39 (12 months ago)
Author:
Kris Moore <kris@…>
Branches:
master, 9.2-release, releng/10.0, releng/10.0.1, releng/10.0.2, releng/10.0.3
Children:
29f152c
Parents:
40f8632
Message:

Sync ssh keys script with life-preserver

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src-qt4/pc-installgui/scripts/setup-ssh-keys.sh

    r93572be r273d110  
    77SSHPORT=$3 
    88 
    9 if [ -z "${SSHUSER}" -o -z "${SSHHOST}" ]; then 
    10   echo "ERROR: Usage setup-ssh-keys.sh <user> <host>" 
    11   touch /tmp/.ssh-auth-failed 
     9if [ -z "${SSHUSER}" -o -z "${SSHHOST}" ] 
     10then 
     11echo "ERROR: Usage setup-ssh-keys.sh <user> <host>" 
    1212  exit 150 
    1313fi 
     
    1818echo "When prompted, enter your password for ${SSHUSER}@${SSHHOST}" 
    1919 
    20 if [ ! -e ".ssh/id_rsa.pub" ]; then 
     20if [ ! -e ".ssh/id_rsa.pub" ] 
     21then 
    2122mkdir .ssh >/dev/null 2>/dev/null 
    2223  ssh-keygen -q -t rsa -N '' -f .ssh/id_rsa 
    23   sync 
     24  sleep 1 
    2425fi 
    2526 
    26 if [ ! -e ".ssh/id_rsa.pub" ]; then 
    27   echo "ERROR: Failed creating .ssh/id_rsa.pub" 
    28   touch /tmp/.ssh-auth-failed 
     27if [ ! -e ".ssh/id_rsa.pub" ] 
     28then 
     29echo "ERROR: Failed creating .ssh/id_rsa.pub" 
     30  read tmp 
    2931  exit 150 
    3032fi 
     
    3941   rm /tmp/.ssh-auth-failed >/dev/null 2>/dev/null 
    4042fi 
    41 exit 0 
     43 
     44echo "Press ENTER to continue" 
     45read tmp 
Note: See TracChangeset for help on using the changeset viewer.