title: Connecting to remote redis server
body: <p>I wanted to make some changes in redis.conf, so that whenever i type redis-cli it connects me to redis installed on remote server. </p>
  
  <p>I know that we can connect to redis installed on remote server by : </p>
  
  <pre><code>redis-cli -h 'IP-Address-Of-Server'. 
  </code></pre>
  
  <p>But actually, I have some bash scripts and in those scripts i have used redis-cli at many place. So instead of replacing redis-cli with redis-cli -h 'IP-Address-Of-Server' in each file, I wanted to somehow change redis configuration, so that by default it connects me to the remote server. I hope it make sense :)</p>