I have the following environment:
- In company X I develop a application on a pc A in network A with ip address 192.168.100.50 which has to do an https request to an http server located in the intranet of company Y
- In company X is another pc B in network B with ip address 192.168.200.100
- pc B (of company X) can access the intranet from company Y via ssh tunnel (putty)
- pc A (of company X) can ping pc B (of company X) note: pc A can also do a remote desktop connection to pc B)
- pc B can ping the http sever
pc A can not ping the http server
- How can the https request from pc A of company X get to the http server of company Y?
- On which pc must be putty configured?
- And which settings for host, port forwarding etc. has to be done in putty?
So finally the https request should go from PC A -> PC B -> Http Server in company Y.
Edit
The scenario I described above this "Edit" is related to subnet Y-SN1 of company Y which can be reached only via putty and ssh. This now works with the answer @faker gave (but in addition to his answer I had to add the port to the allowed ports on the windows firewall on PC-B).
What does still not work: In a browser on PC-B I can enter and reach a https site of company Y´s subnet Y-SN2 without using Putty. How can this https site reached from PC-A? I tried to install Jana (a free proxy server tool) on PC-B, but this only worked for http sites not for https. Anyway I am not sure if this would be the right way to solve this, I would prefer a solution without using any extra tool installation, because I have restricted admin rights on both PCs A and B.