<div dir="ltr"><br><div class="gmail_extra"><br><br><div class="gmail_quote">2013/9/12 bruce <span dir="ltr">&lt;<a href="mailto:badouglas@gmail.com" target="_blank">badouglas@gmail.com</a>&gt;</span><br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
Hi.<br>
<br>
Not sure if this is the right list, but I&#39;m trying to figure out how<br>
to allow an app running on an external machine to be setup to access a<br>
&quot;port&quot;/app running on another machine through a ssh tunnel...<br>
<br>
machine A is the machine running an app located on port 4725<br>
machine A is running sshd, and I can ssh into it<br>
<br>
machine B is the client machine, running a test app that wants to<br>
connect to port 4725 via the foo app.<br>
machine b can ssh into machine A by doing ssh <a href="mailto:fuser@1.2.3.4">fuser@1.2.3.4</a> and giving<br>
the password<br>
<br>
when foo runs on machine B, it&#39;s looking to connect to port 4725, so<br>
I&#39;m trying to figure out how to allow port 4725 from machine A to be<br>
forwarded through to port 4725 in machine B...<br>
<br>
any pointers would be useful<br>
<br>
thanks<br></blockquote><div><br>ssh -lfuser -fnqNT -L ***1INT***:4725:***2INT***:4725 1.2.3.4<br><br>Where ***1INT*** is local bind IP, and ***2INT*** is remote IP, to forward.<br>f.e<br><br>ssh -lfuser -fnqNT -L 127.0.0.1:4725:<a href="http://1.2.3.4:4725">1.2.3.4:4725</a> 1.2.3.4<br>
or<br>ssh -lfuser -fnqNT -L 127.0.0.1:4725:<a href="http://127.0.0.1:4725">127.0.0.1:4725</a> 1.2.3.4<br><br>netstat -ntul | grep 4725<br>tcp        0      0 <a href="http://127.0.0.1:4725">127.0.0.1:4725</a>          0.0.0.0:*               LISTEN<br>
<br>Now Local-to-Remote tunnel listens on your local interface port 4725 <br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<span class=""><font color="#888888">--<br>
users mailing list<br>
<a href="mailto:users@lists.fedoraproject.org">users@lists.fedoraproject.org</a><br>
To unsubscribe or change subscription options:<br>
<a href="https://admin.fedoraproject.org/mailman/listinfo/users" target="_blank">https://admin.fedoraproject.org/mailman/listinfo/users</a><br>
Fedora Code of Conduct: <a href="http://fedoraproject.org/code-of-conduct" target="_blank">http://fedoraproject.org/code-of-conduct</a><br>
Guidelines: <a href="http://fedoraproject.org/wiki/Mailing_list_guidelines" target="_blank">http://fedoraproject.org/wiki/Mailing_list_guidelines</a><br>
Have a question? Ask away: <a href="http://ask.fedoraproject.org" target="_blank">http://ask.fedoraproject.org</a><br>
</font></span></blockquote></div><br></div></div>