andrew at canonical.com
Thu Nov 30 00:39:32 GMT 2006
On Wed, Nov 29, 2006 at 09:54:29PM +0100, Nicholas Allen wrote:
> Specifying the password on the command line in the url does not work
> like you said because bzr is spawning the ssh process.
> Thing is I want to run these pushes from a shell script in a cron job so
> it is important that I am not asked for the password.
> I do not have ssh access to the remote machine (only sftp). I tried
> using a location like sftp+paramiko://user@host/dir but this did not
> work. So I'm not sure how I can force use of paramiko for sftp.
"BZR_SSH=paramiko bzr ..."
Perhaps a "sftp+paramiko" URL scheme would be a better way to do this than an
environment variable, but that's what we have.
> Public key authentication is also not possible.
> Anyone have any other suggestions what else I can do?
Perhaps OpenSSH's connection sharing? See the "-M" option in the man page. It
may be possible to configure OpenSSH to keep a single connection open that it
keeps re-using, which would avoid the need for repeated authentication. I
haven't used this myself, so I don't know how well it works.
More information about the bazaar