title: Redirect SSH traffic from one IP to another IP (To read a file)
body: <p>I have one AWS EC2 instance (say 1.1.1.1). I have a random text file in the home directory of that instance.</p>
  
  <p>I also have another instance (say 2.2.2.2), which has the same file in its home directory. (exact replica of first instance)</p>
  
  <p>Now, when I ssh from another instance (say 3.3.3.3) to 1.1.1.1 to read the file, I want 3.3.3.3 to be directed to 2.2.2.2 and read the file from there instead of 1.1.1.1</p>
  
  <p>So, it will be basically like:</p>
  
  <p>3.3.3.3 --> 1.1.1.1 --> 2.2.2.2</p>
  
  <p>So, basically when I want to read the file from 1.1.1.1, I would be reading the text file in 2.2.2.2.</p>
  
  <p>I am not sure how it can be done with IP tables. So, IP tables based solution would also be helpful.</p>
  
  <p>How could I do this? And, obviously I would be running these commands on 1.1.1.1</p>
  
  <p>PS: All these instances are AWS ubuntu VMs</p>