[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Fab-user] Initiating a 3rd party SSH connection using run()
From: |
Jordan Levy |
Subject: |
[Fab-user] Initiating a 3rd party SSH connection using run() |
Date: |
Tue, 10 Mar 2009 06:01:56 -0700 |
While trying out Fabric for the first time, I've run into an issue with
what seems to be using the run() operation to initiate a SSH connection
from a remote host to a 3rd host. I'm trying to run a command on a
remote host to fetch a Mercurial repository from another host over SSH.
I believe it's fairly common to fetch a repo over SSH from any modern
SCM/VCS, so I was surprised when I hadn't found any info regarding this
on the web.
The relevant line in the fabfile.py is:
run('hg clone $(repo_path)')
and the output looks like this:
[host1.foo.com] run: hg clone
ssh://host2.foo.com//var/hg/importantproject
[host1.foo.com] out: remote: Permission denied
(publickey,keyboard-interactive).
[host1.foo.com] err: abort: no suitable response from remote hg!
Error: The run operation failed on host1.foo.com.
I have ForwardAgent setup on my local machine so that initiating an SSH
session to host1, then to host2 from host1, works just fine without
providing a password. I'm assuming that Fabric does not use
ForwardAgent? This would be fine if I were at least prompted for a
password during the operation.
Here is a link to a blog entry by someone in a similar scenario when
using Capistrano:
http://tim.dysinger.net/2008/04/30/deploying-with-capistrano-git-and-ssh-agent/
Thanks for a great software tool and I'd appreciate any feedback you can
offer on this.
Sincerely,
Jordan
signature.asc
Description: This is a digitally signed message part
- [Fab-user] Initiating a 3rd party SSH connection using run(),
Jordan Levy <=