I use this command to create a reverse tunneling from my home machine to an AWS instance, so that I can connect to my home machine from anywhere
ssh -R 5000:localhost:8000 aws_machine
However, when I execute this command on my home machine, it prompts for my password and logs into my AWS instance.
Edit: Got it to work using few extra parameters
ssh -g -f -R 5000:localhost:8000 aws_machine -N