Actually, an even better solution would be to set up public keys WITH a
password, then
simply use an "ssh-agent" to keep it in memory. That way, you can leave the
processes to do
what deeds they will, and the keys are still protected with a password in the
event they are
stolen.
On Nov 15,
On Nov 15, Jesse Rosenthal wrote:
> Whatever I do, though, I'll need to use pexpect to spawn the
> processes, since I'll need to log in to ssh servers with a password.
You might save yourself this effort by setting up ssh for
non-interactive use with keys instead of password authentication:
$
Hello all,
I'm writing a script which will backup data from my machine to a server
using rsync. It checks to see if I am on the local network. If I am, it
runs rsync over ssh to 192.168.2.6 using the pexpect module to log in.
That's the easy part.
Now, when I'm not on the local network, I first w
On Tue, 04 Oct 2005 12:40:27 -0700, John Hazen wrote:
> I think what's happening is that when you return from 'hostforward', the
> connection is being closed because of garbage collection. Python uses
> (among other stuff) reference counting to tell it when to delete
> objects. After hostforward
Hi Jesse-
> def hostforward():
> #This is based on the assumption that the passfile is the gnus
> #authinfo file, or has a similar format...
> f = open(PASS_FILE, "r")
> f_list = f.read().split(' ')
> f.close()
> #Now, we get the entry after "password" (be slicker to make i
Jesse Rosenthal wrote:
> Hello all,
>
> I'm writing a script which will backup data from my machine to a server
> using rsync. It checks to see if I am on the local network. If I am, it
> runs rsync over ssh to 192.168.2.6 using the pexpect module to log in.
> That's the easy part.
>
> Now, when
On Sun, 02 Oct 2005 08:44:48 +0200, Fredrik Lundh wrote:
> Jesse Rosenthal wrote:
>
>> If I end this with 'connection.interact()', I will end up logged in to the
>> forwarding server. But what I really want is to go on and run rsync to
>> localhost port 2022, which will forward to my_server port
Jesse Rosenthal wrote:
> If I end this with 'connection.interact()', I will end up logged in to the
> forwarding server. But what I really want is to go on and run rsync to
> localhost port 2022, which will forward to my_server port 22. So, how can
> I put the ssh connection I set up in hostforwar
Hello all,
I'm writing a script which will backup data from my machine to a server
using rsync. It checks to see if I am on the local network. If I am, it
runs rsync over ssh to 192.168.2.6 using the pexpect module to log in.
That's the easy part.
Now, when I'm not on the local network, I first w