BackupPC-users

Re: [BackupPC-users] $Conf{SshPath} and expect script

2008-10-04 18:46:54
Subject: Re: [BackupPC-users] $Conf{SshPath} and expect script
From: Holger Parplies <wbppc AT parplies DOT de>
To: Jean-Michel Beuken <jean-michel.beuken AT uclouvain DOT be>
Date: Sun, 5 Oct 2008 00:43:13 +0200
Hi,

Jean-Michel Beuken wrote on 2008-10-04 21:55:51 +0200 [[BackupPC-users] 
$Conf{SshPath} and expect script]:
> 
> When we add a new PC with ssh/rsync transfer method, at the first 
> time, we must accept the "public key" and then, we must type "yes" at the 
> question :

not really, we can use "-o 'StrictHostKeyChecking no'" (and "-q", but that's
in by default anyway) and possibly "-o 'BatchMode yes'" too. See ssh_config(1)
for details. The question remains whether it's a good idea to risk
man-in-the-middle attacks by not verifying the host key fingerprint. After all,
ssh is not asking for confirmation only for the sake of being a nuisance. But
it's your decision, of course.

> [...]
> this script works well "outside" the BackupPC but doesn't works with BackupPC 
> :

Really?

> [...]
> Fatal error (bad version): spawn

It would appear that expect is outputting the string "spawn". As it works well
outside BackupPC, it does not output anything in that case. Strange.

> the question is : is it a Perl problem or a expect problem ?

An expect problem. But then, I don't know expect and wouldn't use it in this
case even if I did.

Regards,
Holger

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
BackupPC-users mailing list
BackupPC-users AT lists.sourceforge DOT net
List:    https://lists.sourceforge.net/lists/listinfo/backuppc-users
Wiki:    http://backuppc.wiki.sourceforge.net
Project: http://backuppc.sourceforge.net/

<Prev in Thread] Current Thread [Next in Thread>