Here's my setup -
I have two VPS ( linodes ). Linode1 has MongoDB on it. I need to access this MongoDB from Linode2. But, I don't want other users on the private network sneak my data, so I need to use autossh.
I ran autossh -M 5122 -N -R 27017:linode1ip:27017 linode1ip
on Linode2 but then I am
prompted to enter password for root@linode1ip
.
What I expect is, when I successfully execute (after modification) the above command, I can connect to mongo from Linode2 simply using mongo 127.0.0.1:27017
. Am I wrong about this assumption?
Thank you,all.