aboutsummaryrefslogtreecommitdiff
path: root/handlers/rdiff
diff options
context:
space:
mode:
authorElijah Saxon <elijah@riseup.net>2005-07-07 21:14:19 +0000
committerElijah Saxon <elijah@riseup.net>2005-07-07 21:14:19 +0000
commit91f3eb464817461dea895b180f7f79d67289ff21 (patch)
treeace1eb23c8fe27b2a6caf8c164234024043a77fb /handlers/rdiff
parent06566455cf8262233d4ebf243002132326c66504 (diff)
downloadbackupninja-91f3eb464817461dea895b180f7f79d67289ff21.tar.gz
backupninja-91f3eb464817461dea895b180f7f79d67289ff21.tar.bz2
greatly improved the rdiff wizard. added default option to menu in easydialog.
Diffstat (limited to 'handlers/rdiff')
-rw-r--r--handlers/rdiff8
1 files changed, 4 insertions, 4 deletions
diff --git a/handlers/rdiff b/handlers/rdiff
index 713f4c6..bec59ff 100644
--- a/handlers/rdiff
+++ b/handlers/rdiff
@@ -43,8 +43,8 @@ if [ "$desttype" == "remote" ]; then
# see if we can login
if [ "$testconnect" == "yes" ]; then
hostalive=0
- debug "ssh -o PasswordAuthentication=no $desthost -l $destuser 'echo -n 1'"
- ret=`ssh -o PasswordAuthentication=no $desthost -l $destuser 'echo -n host is alive'`
+ debug "ssh -o -o PreferredAuthentications=publickey $desthost -l $destuser 'echo -n 1'"
+ ret=`ssh -o -o PreferredAuthentications=publickey $desthost -l $destuser 'echo -n host is alive'`
if echo $ret | grep "host is alive"; then
debug "Connected to $desthost as $destuser successfully"
else
@@ -52,8 +52,8 @@ if [ "$desttype" == "remote" ]; then
fi
fi
# see that rdiff-backup has the same version as here
- debug "ssh $desthost -l $destuser '$RDIFFBACKUP -V'\""
- remoteversion=`ssh $desthost -l $destuser "$RDIFFBACKUP -V | grep rdiff-backup"`
+ debug "ssh -o PreferredAuthentications=publickey $desthost -l $destuser '$RDIFFBACKUP -V'\""
+ remoteversion=`ssh -o PreferredAuthentications=publickey $desthost -l $destuser "$RDIFFBACKUP -V | grep rdiff-backup"`
localversion=`$RDIFFBACKUP -V`
if [ "$remoteversion" != "$localversion" ]; then
fatal "rdiff-backup does not have the same version on this computer and the backup server."