Hello Sreekanth,
Why not use something like ssh jumphost command like so:
ssh -i {keypath} -o ProxyCommand="ssh -i {keypath} -W %h:%p user@{jumphost}" user@{hiddenhost}
where:
• jumphost is IP of your publicly accessible instance,
• hiddenhost is IP of your host in the private network...