On Thu, Sep 23, 2010 at 5:35 PM, Yungwei Chen <yung...@resolvity.com> wrote: > Is setting up automatic login for each ssh-connected machine required? > User 'root' is usually not allowed to log into another machine using ssh. In > this case, what do people usually do to run fab files? > Thanks again.
This is an SSH issue, not a Fabric specific one, FYI. If you're asking about what the SSH best practice is, typically you might set up a normal user on the remote end who has "sudo" privileges (so they can do root-y things when necessary) and then connect as that user. Having the root user turned off for SSH logins is typically a good thing to have security-wise. You can also use SSH keys and an agent (on your local workstation) to get passwordless logins to servers that are configured correctly. Google around for "ssh key authentication" :) there's a million tutorials out there. Hope that helps, Jeff > -----Original Message----- > From: bitprop...@gmail.com [mailto:bitprop...@gmail.com] On Behalf Of Jeff > Forcier > Sent: Thursday, September 23, 2010 3:43 PM > To: Yungwei Chen > Cc: fab-user@nongnu.org > Subject: Re: [Fab-user] RE: A few questions about fabric > > On Thu, Sep 23, 2010 at 4:35 PM, Yungwei Chen <yung...@resolvity.com> wrote: >> Another question: do I need to install fabric on each machine? > > Fabric is simply an SSH wrapper, so it requires absolutely nothing on > the *server* end save for SSH itself. (Contrast this to tools like > execnet which *do* require Python on the server end.) You can install > Fabric on a single workstation and write/run Fab scripts targeting any > number of servers; that's the common use case at any rate. > > If I've misunderstood your question, let me know. > > -Jeff > >> -----Original Message----- >> From: fab-user-bounces+yungwei=resolvity....@nongnu.org >> [mailto:fab-user-bounces+yungwei=resolvity....@nongnu.org] On Behalf Of >> Yungwei Chen >> Sent: Wednesday, September 22, 2010 10:33 AM >> To: fab-user@nongnu.org >> Subject: [Fab-user] A few questions about fabric >> >> Hi, >> >> I have a few questions about fabric. Thanks. >> >> 1. When loading a sql dump into a mysql server on a remote machine using >> fabric, will I be prompted to enter a password on my local console? If not, >> how do you usually deal with this situation? >> >> 2. If multiple remote machines are involved in a given task, do I have to >> divide a big fabric script into multiple parts and then run them separately >> on different remote machines? Or maybe I don't have to so long as required >> ssh connections are established properly? >> >> _______________________________________________ >> Fab-user mailing list >> Fab-user@nongnu.org >> http://lists.nongnu.org/mailman/listinfo/fab-user >> >> _______________________________________________ >> Fab-user mailing list >> Fab-user@nongnu.org >> http://lists.nongnu.org/mailman/listinfo/fab-user >> > > > > -- > Jeff Forcier > Unix sysadmin; Python/Ruby developer > http://bitprophet.org > > _______________________________________________ > Fab-user mailing list > Fab-user@nongnu.org > http://lists.nongnu.org/mailman/listinfo/fab-user > -- Jeff Forcier Unix sysadmin; Python/Ruby developer http://bitprophet.org _______________________________________________ Fab-user mailing list Fab-user@nongnu.org http://lists.nongnu.org/mailman/listinfo/fab-user