RSS icon Articles 81 to 85

SSH Restrictions

By Jimmy Bonney | March 3, 2008

Some time ago, I was explaining how to backup your important files using rsync and ssh. This solution allowed to transfer some content to your server in a secure way. Of course, I was using this solution myself, but I got some problems while using it due to SSH limitations with my webhost (webhostingbuzz). Indeed, after 30 minutes of connection, the SSH session was killed and therefore rsync that was using it got frozen.

After some researches on this Internet, I found some options to give to the SSH command to maintain a connection open with the server. Different solutions exist:


Find Other Websites Hosted On Your Server

By Jimmy Bonney | March 3, 2008

If you are using a shared webhosting like I do, it can be interesting to know which websites are located on the same server. Indeed, if you find your site too slow, it may be because another website is consuming too much resources. There can as well be some problems if you are sharing your IP address with some site that are censored abroad. Indeed, if one of the site of the server is blocked, the IP is probably blocked so you will not be able to access your own site even though there is nothing to censor in it. And you will not be able to access your own proxy server.

So here are two interesting links to find it out, but be aware that a few hundred websites can be located on the same server:

  1. My IP neighbors
  2. You get signal

Backup Your Files with rsync and SSH

By Jimmy Bonney | February 9, 2008

If you have many important files on your computer, you probably save them somewhere, from time to time: usb key, CD, server… the choice is yours. But the problem is to maintain this backup up-to-date. So what about making a backup à la “time-machine” to save your files on a regular basis and be able to access previous versions or the latest one easily. We will realize a backup of the files of the computer to our web hosting / server.

For that, we’ll use the linux tools rsync and SSH. This tools are usually built-in in Linux distributions or you can easily install them otherwise with your favorite packet manager. Under Windows, that’s another story but nothing is completely lost. I will begin to describe how-to install the tools under Windows (sometimes you just don’t have the choice of your OS) and then describe the backup procedure. The procedure applies for both linux and windows.

I make here the assumption that you have an ssh access to your distant server. This will allow you to have an encrypted connection between your computer and the server and and therefore will prevent anyone to intercept your backups when you send them.


Restrict Access with HTAccess

By Jimmy Bonney | January 30, 2008

I am sure that you have already seen some dialog like that:

HTAccess restricted Access

This kind of dialog appears when a folder is protected on an Apache server. It allows some files to be accessible to a limited amount of people with special rights. This kind of protection is done by a little file: .htaccess put in the directory containing the content to protect.


Host Your Own Proxy Server

By Jimmy Bonney | January 28, 2008

I guess that you have already been in a situation where you couldn’t access some websites whether you are at school, work, library, or in some country that practices censure.

There are many proxies (thanks Korben for the info) that you can use to bypass these limitations but they can be slow and / or with a lot of ads and pop-up windows. But if you have your own web hosting, there is an easy way to avoid these drawbacks: install your own proxy1. In order to do so, you simply need:

  • A web hosting that allows you to execute cgi scripts.
  • The CGIProxy script written by James Marshall, available here.