Skip to main content
9 events
when toggle format what by license comment
Jun 7, 2021 at 13:22 comment added Jeff Breadner I like the example provided by @icarus. The real question at this point is whether Service A is making the request to port X (unlikely, or else there's no problem that warrants this question) or that the client needs to be directed to query port X, which is unavailable. Rather than SSH, the "normal" way of doing this is with a reverse proxy like NGINX, which can expose port X on the same machine that is running Service A, but all requests to port X would be directed to the "real" port X on the private server. SSH port forwarding should not be used in this kind of production setup, IMO.
Jun 7, 2021 at 10:55 comment added icarus I still need more details. The "special client" means the program that calls the APIs. I am a "person on the internet". Am I using a web browser to connect to a webserver, say on AWS, that you control to see stock prices. This webserver needs to connect to tcp port 2500 on a machine in your basement that is firewalled from the internet. This program on port 2500 provides a database to answer stock price queries. Your question is how to get from AWS to your basement machine? Is your "Service A" the webserver on AWS , rather than the database running in your basement?
Jun 7, 2021 at 5:43 comment added likecs Thanks @icarus. I am not clear what "Does the service need a special client?" meant? Can you please check if the updated replies are fine?
Jun 7, 2021 at 5:43 comment added likecs Thanks @JeffBreadner I had updated the question.
Jun 7, 2021 at 5:39 history edited likecs CC BY-SA 4.0
added 533 characters in body
Jun 7, 2021 at 0:30 comment added Jeff Breadner Also, is the service TCP or UDP based; SSH can only forward TCP connections without getting other utilities (like socat) involved.
Jun 6, 2021 at 20:37 review Close votes
Jun 24, 2021 at 3:01
Jun 6, 2021 at 20:20 comment added icarus Please provide more details. How many computers are involved? Is X a small number? Are the machines single user? Does the service need a special client? For many cases using SSH forwarding is simpler, but usually allows any local user access to the remote service.
Jun 6, 2021 at 19:25 history asked likecs CC BY-SA 4.0