The Daily Build

Icon

Software Development, version 3.0

Use SSH to Forward Multiple Protocols to Multiple Machines

Let’s say you have a half-dozen machines at work you want to log into. Instead of setting up a remote forwarding connection from each of those machines, you can have the connection from your main machine perform multiple forwardings instead of just one. This even works if some of the machines don’t support ssh.

Read the rest of this entry »

Open an SSH Tunnel in Four Seconds or Less

As I mentioned in a previous post on ssh configuration, your config file can specify a variety settings for each server. In fact, the Hosts you use don’t even have to exist! Consider the following snippet in your ~/.ssh/config.

Read the rest of this entry »

Use Local SSH Forwarding to Reduce the Number of Manual Hops

Local port forwarding is the same as remote port forwarding but works in the opposite direction. An example is the clearest way to explain…

Read the rest of this entry »

How to Use SSH Remote Port Forwarding to Set Up Secure Tunnels

Ssh tunneling can be a bit mind bending at first, but it’s simple when you get used to it.

Read the rest of this entry »

How to Tell SSH Who You Are

Do you log in to several servers with different usernames via ssh? Save typing by telling ssh which username to use on each server.

Read the rest of this entry »

Using Python’s ctypes to Call Into C Libraries

The ctypes module makes loading and calling into a dynamic library incredibly easy.

Read the rest of this entry »

Python Exception Handling: Cleanup and Reraise

I’ve had this code around for a while and had an opportunity to drag it out the other day and dust it off. The problem: Every now and again there’s a situation where you don’t really want to catch an exception, but you do want to perform some cleanup and let the exception propagate up [...]

Read the rest of this entry »

Five Days to a Django Web App: Day Four, Deployment

Thanks for your patience, and for coming back for a discussion of deploying our Django web app. In case you missed any of the previous posts in this series, here they are: Day One, Get Ready (Concept and prep) Day Two, Mockups (Creating a design) Day Three, Coding (Coding tests, views, templates, and models) Pre-Deployment [...]

Read the rest of this entry »

Five Days to a Django Web App: Day Three, Coding

Thanks for coming back for Day Three! [Note: Sorry this post is a day late. It was all ready to go late yesterday, but some of the code included below triggered a bug either in WordPress or ScribeFire and the whole post got mangled. I managed to resurrect it today from drafts, and I think [...]

Read the rest of this entry »

Five Days to a Django Web App: Day Two, Mockups

Welcome back. Ready for Day Two? Did you get your “hello world” app running on your host? Where We Stand Yesterday we nailed down our concept, bought a domain name and hosting, set up our toolkit, and deployed a practice app on the host. Here’s what I’m going to build: a web app to keep [...]

Read the rest of this entry »