Thursday, May 2, 2024
 Popular · Latest · Hot · Upcoming
0
rated 0 times [  0] [ 0]  / answers: 1 / hits: 3420  / 2 Years ago, mon, february 7, 2022, 9:18:22

This question is prompted by another question here. Now I use teamviewer to connect to a Ubuntu desktop in a customer's LAN from my LAN. I get a password and access ID from him and connect, then use it to login to other ubuntu servers/machines using ssh or whatever commands/packages I need.


I am looking for an open source alternatives where I can do NAT Pass through on both ends (my router and customers router). If this can be accomplished by Free-NX, Remmina or VNC, can some one point to documentation on how to set this up?


Note: Port-forwarding from router at customer's router is not an option, so such solutions cannot be used.


More From » 12.04

 Answers
2

use SSH tunneling.
it will require the least amount of installation and configuration of programs on the customer side and none on the server side



on the customer machine run the following command:



ssh -R 8080:localhost:80 username@YourPublicIP


in the example above. the local port 80 on the customers machine will be accessible/forwaded to the machine with YourPublicIP even though the customers machine is behind NAT.



In your scenario you can ask the customer to press a "link" to a script you have installed for him/her. running the command above.



If your customer is using Windows. You can a do the above with a windows ssh client like putty



The customer will need a password to your machine unless you configure the customer to authenticate with key based authentication


[#36333] Wednesday, February 9, 2022, 2 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
eaderitable

Total Points: 368
Total Questions: 117
Total Answers: 111

Location: Tuvalu
Member since Sat, Feb 11, 2023
1 Year ago
;