Synchronizing directory hierarchies via SFTP

Patrick Hess patrickhess at gmx.net
Wed Dec 9 01:07:46 UTC 2015


dweimer wrote:
> I am not familiar with lftp, so it may not have support for it, but if 
> it were me doing this, I would look into using public/private OpenSSH 
> key pairs instead of sending the password with the expect script.

I'd prefer to take that route, too. Well, actually, I'd rather use
cpdup over SSH with public keys in the first place. Unfortunately,
with this server, I really can't do *anything* on the remote side,
and password authentication is the only option I've been given.

But good thing you mentioned that. The Expect script will of course leak
the password out to the process table. That's not an issue in my case;
if it was, I'd definitely set security.bsd.see_other_uids=0.

Patrick


More information about the freebsd-questions mailing list