OSX SSH Redirect Port Traffic

Posted on 2010-01-11
Medium Priority
Last Modified: 2013-12-23

I've got an OS X server that has a static IP that is authorized (by ip) to connect and accept data from a master server via telnet.  (telnet remoteserver.com port 1010)

From my laptop, I think I should be able to do this, but maybe I need a vpn..

I'd like to be able to, via ssh, have my server connect and get data from the master server, but I want the data to stream back to my laptop.  So ultimately, on my laptop, if I were to telnet localhost port 1010 (or whatever), I can see the data coming in as if I were on my server doing the same thing.

This possible without a vpn to mask my ip?
Question by:ecuguru
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2

Author Comment

ID: 26285428
By the way, if there is a way without ssh to do this I'm all ears.. I thought I had this working through two ssh calls, a port redirect on the server and one to it, but it closed the connection when I went to connect.
LVL 62

Expert Comment

ID: 26291056
Which connection was closed?

Author Comment

ID: 26522229
My server to the remote feed on the master server.
LVL 62

Accepted Solution

gheist earned 2000 total points
ID: 26537405
1) SSH server needs to allow TCPforwarding
2) You need to redirect local port to host:port you will connect to
3) then you connect to local port and voila!

Enable debug logging in SSH client on OSX as the firs effort.

Featured Post

U.S. Department of Agriculture and Acronis Access

With the new era of mobile computing, smartphones and tablets, wireless communications and cloud services, the USDA sought to take advantage of a mobilized workforce and the blurring lines between personal and corporate computing resources.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article will inform Clients about common and important expectations from the freelancers (Experts) who are looking at your Gig.
This article explains the fundamentals of industrial networking which ultimately is the backbone network which is providing communications for process devices like robots and other not so interesting stuff.
Internet Business Fax to Email Made Easy - With  eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, f…
This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're looking for how to monitor bandwidth using netflow or packet s…

770 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question