mirror of
https://0xacab.org/liberate/backupninja.git
synced 2024-11-10 04:42:31 +01:00
removed extra -o
This commit is contained in:
parent
6af4bda04f
commit
1f290a8a23
@ -43,8 +43,8 @@ if [ "$desttype" == "remote" ]; then
|
||||
# see if we can login
|
||||
if [ "$testconnect" == "yes" ]; then
|
||||
hostalive=0
|
||||
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'`
|
||||
debug "ssh -o PreferredAuthentications=publickey $desthost -l $destuser 'echo -n 1'"
|
||||
ret=`ssh -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
|
||||
|
Loading…
Reference in New Issue
Block a user