I''ve recently got a new modem. In fact, it''s a modem-router with NAT functionality. Before I had a plain modem-modem, and I was able to access my workstation from my remote server using the IP address assigned to me by my ISP. Now however, that IP address only reaches the modem-router and the IP address of my workstation is set by my modem-router to 192.168.0.2 How can I reach my workstation now that I have to go through the modem-router? For instance, if I want to ssh into my remote server and issue a command that copies a file from my remote server to my workstation using scp: $ scp file.txt sebyte@aaa.bbb.ccc.ddd:/home/sebyte/Desktop/file.txt what IP address should I use? Obviously 192.168.0.2 is not going to work. sdt
Dnia niedziela, 14 maja 2006 01:11, Sebastian Tennant napisaĆ:> I''ve recently got a new modem. In fact, it''s a modem-router with NAT > functionality. Before I had a plain modem-modem, and I was able to > access my workstation from my remote server using the IP address > assigned to me by my ISP. Now however, that IP address only reaches > the modem-router and the IP address of my workstation is set by my > modem-router to 192.168.0.2 > > How can I reach my workstation now that I have to go through the > modem-router? > > For instance, if I want to ssh into my remote server and issue a > command that copies a file from my remote server to my workstation > using scp: > > $ scp file.txt sebyte@aaa.bbb.ccc.ddd:/home/sebyte/Desktop/file.txt > > what IP address should I use? Obviously 192.168.0.2 is not going to > work. > > sdt > > _______________________________________________ > LARTC mailing list > LARTC@mailman.ds9a.nl > http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartcHi, you have to use port forwarding and / or DMZ funcionality on your router if it has it. For instance you can forward port 22 from router to your internal box where ssh deamon is running. Than you can use your public ip form isp x.y.z.a:22 to reach your ssh deamon. Pozdrawiam
Sebastian Tennant
2006-May-15 00:42 UTC
Re: Simple routing question from networking newbie
Quoth Szymon Mroofka <sawar@interia.pl>:>> For instance, if I want to ssh into my remote server and issue a >> command that copies a file from my remote server to my workstation >> using scp: >> >> $ scp file.txt sebyte@aaa.bbb.ccc.ddd:/home/sebyte/Desktop/file.txt >> >> what IP address should I use? Obviously 192.168.0.2 is not going to >> work.> you have to use port forwarding and / or DMZ funcionality on your > router if it has it. For instance you can forward port 22 from > router to your internal box where ssh deamon is running. Than you > can use your public ip form isp x.y.z.a:22 to reach your ssh deamon.Ah... OK. Hmm.. I''ll look into it, and hopefully come back with a more intelligent question than simply "What do they do?" sdt
This might be an instance where ssh -L could be your friend. Robb On 5/14/06, Sebastian Tennant <sebyte@smolny.plus.com> wrote:> Quoth Szymon Mroofka <sawar@interia.pl>: > >> For instance, if I want to ssh into my remote server and issue a > >> command that copies a file from my remote server to my workstation > >> using scp: > >> > >> $ scp file.txt sebyte@aaa.bbb.ccc.ddd:/home/sebyte/Desktop/file.txt > >> > >> what IP address should I use? Obviously 192.168.0.2 is not going to > >> work. > > > you have to use port forwarding and / or DMZ funcionality on your > > router if it has it. For instance you can forward port 22 from > > router to your internal box where ssh deamon is running. Than you > > can use your public ip form isp x.y.z.a:22 to reach your ssh deamon. > > Ah... OK. Hmm.. I''ll look into it, and hopefully come back with a > more intelligent question than simply "What do they do?" > > sdt > > > _______________________________________________ > LARTC mailing list > LARTC@mailman.ds9a.nl > http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc >
Sebastian Tennant
2006-May-15 20:48 UTC
Re: Simple routing question from networking newbie
>> you have to use port forwarding and / or DMZ funcionality on your >> router if it has it. For instance you can forward port 22 from >> router to your internal box where ssh deamon is running. Than you >> can use your public ip form isp x.y.z.a:22 to reach your ssh deamon.Assuming ''port forwarding'' is the same as ''port redirection'' on D-Link modem-routers (a sort-of reverse NAT), then I''ve enabled TCP packets to pass through to 192.168.0.2 on port 22... but it hasn''t helped. I''ve also tried enabling ''DMZ state'' and making 192.168.0.2 the DMZ IP address... but again, to no avail. In both cases scp just says ''connection refused''. No matter because I''ve found another way. Emacs users should check out tramp mode if they haven''t heard of it. Thanks all. sdt