pgpool2.git / summary / log / commit / refs

commit    91ce6e2fcbc0fcc35a73c187f6485f5808abbe89
Author:   Yugo Nagata <nagata@sraoss.co.jp>
Date:     Fri Jun 14 07:45:23 2013 +0000

    delete the file


redhat/rpm_installer/ssh_wo_password.sh | 47 --------------------------------- 1 file changed, 47 deletions(-) diff --git a/redhat/rpm_installer/ssh_wo_password.sh b/redhat/rpm_installer/ssh_wo_password.sh deleted file mode 100755 index cebefd30a..000000000 --- a/redhat/rpm_installer/ssh_wo_password.sh +++ /dev/null @@ -1,47 +0,0 @@ -#!/bin/sh - -USERNAME=$1 -THIS_HOST=$3 -DEST_HOST=$3 - -SSH_DIR=/home/$USERNAME/.ssh - -# config SSH in remote host -echo " - regist $DEST_HOST's public key to $THIS_HOST" - -su - $USERNAME -c "mkdir $SSH_DIR > /dev/null 2>&1" - -PUB_KEY=`ssh $USERNAME@$DEST_HOST -T << EOF2 -rm $SSH_DIR/id_rsa* -ssh-keygen -q -t rsa -P '' -f $SSH_DIR/id_rsa << EOF - -EOF - -chmod 700 $SSH_DIR -touch $SSH_DIR/authorized_keys -chmod 600 $SSH_DIR/authorized_keys - -cat $SSH_DIR/id_rsa.pub -EOF2 -` -if [ $? -ne 0 ]; then exit 1; fi - -su - $USERNAME -c "echo $PUB_KEY >> $SSH_DIR/authorized_keys" -if [ $? -ne 0 ]; then exit 1; fi - -# config SSH in local host -echo " - Regist $THIS_HOST's public key to $DEST_HOST" -rm $SSH_DIR/id_rsa* -su - $USERNAME -c "ssh-keygen -q -t rsa -P '' -f $SSH_DIR/id_rsa << EOF - -EOF" -if [ $? -ne 0 ]; then exit 1; fi - -ssh-copy-id -i $SSH_DIR/id_rsa.pub $USERNAME@$DEST_HOST > /dev/null 2>&1 -if [ $? -ne 0 ]; then exit 1; fi - -# arrange permissions -chmod 700 $SSH_DIR -chmod 600 $SSH_DIR/authorized_keys - -exit 0 [parent: 16c60328510e]