Using ASP.Net Forms Authentication on Load Balanced Servers

We recently started using HAProxy to load balance between two application servers for both HTTP and HTTPS traffic. It was really easy to get working, has worked great so far and we’re really pleased with it. The only issue we had was with our login cookies, which are set via FormsAuth, as when logging in our visitors use HTTPS and might get a different server to the one they were ‘stuck’ to with HTTP which uses a cookie to ensure the same server. HAProxy can’t read a cookie from an SSL stream as…

Read More

An easy way to copy your ssh public key to a remote host using ssh-copy-id on OSX

Here is a good little tip to save you some time uploading your public key to a remote host (tested to work on OSX Lion). ssh-copy-id copies your key up to a remote host (via ssh with your password) and even assigns the correct permission to home, ~/.ssh, and ~/.ssh/authorized_keys directories for you. For some reason it doesn’t ship with OSX, but you can just copy it from your remote linux host and it’ll work fine. First copy ssh-copy-id down from your remote host… sudo scp [email protected]

Read More