Skip to content

Commit

Permalink
Improving Hot Key Check
Browse files Browse the repository at this point in the history
  • Loading branch information
zhijie committed Sep 23, 2015
1 parent 9ca0699 commit ff84ced
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions autossh
Original file line number Diff line number Diff line change
Expand Up @@ -79,9 +79,7 @@ for server in $AUTO_SSH_CONFIG; do
fi
echo '#!/usr/bin/expect -f' > $FILE
echo 'set timeout 30' >> $FILE
echo "spawn ssh -p$PORT -l "$NAME $IP >> $FILE
echo 'expect "Are you sure you want to continue connecting"' >> $FILE
echo 'send "yes' >> $FILE
echo "spawn ssh -o \"StrictHostKeyChecking no\" -p$PORT -l "$NAME $IP >> $FILE
if [ "$PASS" != "" ]; then
echo 'expect "password:"' >> $FILE
echo 'send '$PASS"\r" >> $FILE
Expand Down

0 comments on commit ff84ced

Please sign in to comment.