SSH over the Internet to a local-network-specific IP
Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
SSH over the Internet to a local-network-specific IP
I connect to a computer on a private network over the Internet. Previously, I configured the router of the local network to forward connection on a specific port I use for SSH to the Linux machine on the network.
What I want to know is how I can have SSH connect to a specific computer on the network with specific local IP address. I basically want to remove the router from the equation, and just have SSH connect to that network over the Internet, and then connect to a specific local machine.
how does ssh connect to a network?? that doesn't appear to make any sense at all... what do you suppose you actually log into? a cable? what you've already got looks just fine from what you're saying you need. maybe you could explain what you are having troubles with? maybe you actually want to look at a vpn between two sites so you can use the local addresses from a remote location?
Explanation: I am on a home computer. I want to connect over the internet to a remote machine on a different network. The remote machine does not have a unique Internet IP address. The only unique Internet IP address is being used by the router (lets call it www.someplace.com).
The remote machine I want to connect to has the local network address 192.168.0.5.
To connect to this destination remote machine, in the past, I have normally had to configure the router to send traffic on a certain incoming port directed to a certain local IP. In this case, I would have to configure the Internet Router to send incoming traffic on port 22 to the local machine with the local network IP 192.168.0.5.
I want to know if there is a method of avoiding configuring the router. The problem arises from the destination remote machine NOT having a unique Internet IP. I am wondering if there is a way to tell SSH to first connect to an Internet IP and then to a subsequent local network IP.
well that's the absolute total 100% point of port forwarding existing at all... as above, you could establish a VPN, .e.g OpenVPN.net, but that's not specfically what you are asking for.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.