LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   access ssh tunneled location trough lan (https://www.linuxquestions.org/questions/linux-networking-3/access-ssh-tunneled-location-trough-lan-843166/)

Steviepower 11-09-2010 03:20 AM

access ssh tunneled location trough lan
 
Hello,

I'm quite new to ssh tunneling but I now want to make one of my machines at home accessible to my lan network here.

I used the following command to make it available trough 127.0.0.1:5555(lo interface):
ssh -L 5555:192.168.0.15:80 me@xx.xx.xx.xx -N

now I want to make it available to eth0 on 192.168.1.40:5555 How do I do this?

-steven

Steviepower 11-09-2010 03:25 AM

if found a thread where someone wants to do the same but no-one seems to understand that he want's to do what I want.
http://www.linuxquestions.org/questi...etwork-595181/
to me it's mainly testing purposes and I can monitor the connection by hand.

iamwilliam 11-09-2010 04:43 AM

Hi,

I hope I understood your question correctly, this should work

Code:

ssh -L 192.168.1.40:5555:192.168.0.15:80 me@xx.xx.xx.xx -N

Steviepower 11-09-2010 06:14 AM

yes you did, I just found that out myself as well!

Glad it works now and it really does the job, lets hope others can use this thread as well!


All times are GMT -5. The time now is 12:56 AM.