[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[no subject]
- <!--x-content-type: text/plain --> "http://www.w3.org/TR/html4/loose.dtd">
- <!--x-date: Thu, 25 Aug 2005 09:51:33 -0400 -->
- <!--x-from-r13: wxvaarl ng ybpnyargfbyhgvbaf.pbz (Xnzrf B. Yvaarl WWW) -->
- <!--x-message-id: [email protected] -->
- <!--x-subject: [ale] port forwarding with nc -->
- <li><em>date</em>: Thu, 25 Aug 2005 09:51:33 -0400</li>
- <li><em>from</em>: jkinney at localnetsolutions.com (James P. Kinney III)</li>
- <li><em>subject</em>: [ale] port forwarding with nc</li>
take serial port data from /dev/ttyS14 on machineA and route it securely
with an ssh tunnel to machineB where it is picked up and put onto serial
port /dev/ttyS1
I have been trying to do it with a combination of nc and ssh as follows:
on machineA:
#!/bin/sh
TCP_PORT=26150
SERIAL_PORT=/dev/ttyS14
BAUDRATE=38400
while (true)
do
(stty $BAUDRATE -echo clocal raw pass8 ; exec nc -l -p
$TCP_PORT) < $SERIAL_PORT > $SERIAL_PORT
done
followed by:
ssh -L 26150:machineB:26150 machineB
(ssh connection is with keys)
And on machineB the same script as above with SERIAL_PORT=/dev/ttyS1
I keep running into the issue of not being able to "share connections"
to port 26150 on machineA. Both nc and ssh want to lock it on their
connection. How do I get around this?
(stupid, ancient DOS app that can't be run over a nice fast network
line)
--
James P. Kinney III \Changing the mobile computing world/
CEO & Director of Engineering \ one Linux user /
Local Net Solutions,LLC \ at a time. /
770-493-8244 \.___________________________./
<a rel="nofollow" href="http://www.localnetsolutions.com">http://www.localnetsolutions.com</a>
GPG ID: 829C6CA7 James P. Kinney III (M.S. Physics)
<jkinney at localnetsolutions.com>
Fingerprint = 3C9E 6366 54FC A3FE BA4D 0659 6190 ADC3 829C 6CA7
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
</pre>
<!--X-Body-of-Message-End-->
<!--X-MsgBody-End-->
<!--X-Follow-Ups-->
<hr>
<ul><li><strong>Follow-Ups</strong>:
<ul>
<li><strong><a name="00423" href="msg00423.html">[ale] port forwarding with nc</a></strong>
<ul><li><em>From:</em> jkinney at localnetsolutions.com (James P. Kinney III)</li></ul></li>
</ul></li></ul>
<!--X-Follow-Ups-End-->
<!--X-References-->
<!--X-References-End-->
<!--X-BotPNI-->
<ul>
<li>Prev by Date:
<strong><a href="msg00414.html">[ale] Syntax problem</a></strong>
</li>
<li>Next by Date:
<strong><a href="msg00417.html">[ale] WINE.conf <- working example file needed</a></strong>
</li>
<li>Previous by thread:
<strong><a href="msg00451.html">[ale] OT: Seeking consultant with cross-compiling experience</a></strong>
</li>
<li>Next by thread:
<strong><a href="msg00423.html">[ale] port forwarding with nc</a></strong>
</li>
<li>Index(es):
<ul>
<li><a href="maillist.html#00415"><strong>Date</strong></a></li>
<li><a href="threads.html#00415"><strong>Thread</strong></a></li>
</ul>
</li>
</ul>
<!--X-BotPNI-End-->
<!--X-User-Footer-->
<!--X-User-Footer-End-->
</body>
</html>