Streaming Replication failing from standby with connection issue
On the primary server, in pg_hba.conf replace your entry with the below:

host    all  all  10.0.0.5/32  trust


Now reload the conf (for example, doing pg_ctl reload or doing a SELECT pg_reload_conf(); in the DB itself).

On the standby, check recovery.conf: it should contain the following:

standby_mode='on'
primary_conninfo=' host=10.0.0.5'
restore_command = 'cp /var/lib/postgresql/9.1/main/archive/%f %p'
recovery_target_timeline = 'latest'


Now restart the slave machine.

And if you are still unable to connect, check replication user attributes -  replication should be set there.  Use \du to check this when using psql.