I’ve enabled syntax highlighting on this site using the very tidy Chili.
The standard distribution of Chili doesn’t include a Python language definition (or Erlang, or Haskell…), so I wrote one.
I’ve enabled syntax highlighting on this site using the very tidy Chili.
The standard distribution of Chili doesn’t include a Python language definition (or Erlang, or Haskell…), so I wrote one.
Fabric is a very useful Python tool for scripting administration of remote servers. Like Capistrano it allows you to define tasks as a mixture of local and remote operations and then run them for lots of hosts, different groups of hosts, etc.
Increasingly I’m using configuring sshd to allow public key authentication only. Using this method makes your server more secure against increasingly common SSH brute force attacks. You can also configure an ssh-agent app to allow password-less logins.
If you want your Fabric tasks to access machines using public key authentication, add something like to your Fabfile:
from paramiko import RSAKey
config.fab_user = "jhacker"
config.fab_pkey = RSAKey.from_private_key_file("/path/to/keyfile")
Simple, and very useful.
Personal site of Ben Godfrey, wandering hacker, serial founder, techno fanboy.
.net ab apache bali benchmarking byteflow chili clojure csharp css development django downturn drupal erlang fabric fastcgi functionalprogramming haskell html5 http javascript jquery lifehacks lisp london minimal mixcloud mvc nginx openrasta process python r r-project rememberthemilk rest ria software ssh startups telecommuting vim webapps webmachine wordpress
© 2001-2010 Ben Godfrey