I am trying to get a working SSH server on my linux computer (ubuntu 14). Let's call this computer "Ubuntu". Ubuntu is connected to the internet through a shared internet connection from my Windows 10 machine (call it "Windows").
The network looks something like this (very linear):
Internet --> Router --> Windows --> Ubuntu
I installed my SSH server on the Ubuntu machine and can access it locally doing this: On Windows PC, I use PuTTY and connect via SSH using the inet adress of Ubuntu and SSH port. It works, but it is only local.
How can I make this work with my public IP adress? My public IP adress is the same for both machines (and it won't ever change so I don't need a name through ddns). Is there anything like Apache "Virtual Hosts" for SSH?
To complicate things a little bit, I'm running an OwnCloud server on the Windows machine through WAMP (apache). This is running on https, don't know if it could interfere with SSH configuration. I thought I could do something like using a Virtual Host to redirect
my.private.ip/ssh to SSH on the Ubuntu machine... does this make any sense?
Router --> Windows: (apache WAMP server) --> Virtual host for /SSH redirect to --> Ubuntu
Else, could I do something like connect to SSH using
192.168.xxx.xxx:port (through) yyy.yyy.yyy.yyy (where xxx is the local ip and yyy is the public ip)
Any help would be welcome, but please consider that I'm a total newbie and don't understand half of what I'm doing ;)