Skip to contentSkip to conversation

Simple routing question from networking newbie

LARTC Sebastian Tennant 2 participants 3 messages May 15, 2006

lore
Share & tools
lore
#0 lore raw

Quoth Szymon Mroofka <[email protected]>:

Quoted 6 lines
Quoted 6 lines

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 [email protected]:/home/sebyte/Desktop/file.txt
Quoted 7 lines
Quoted 2 lines

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
[email protected]
http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc

#1 lore raw

This might be an instance where ssh -L could be your friend.

Robb

Quoted 18 lines · Sebastian Tennant

Quoth Szymon Mroofka <[email protected]>:

Quoted 6 lines
Quoted 6 lines

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 [email protected]:/home/sebyte/Desktop/file.txt
Quoted 7 lines
Quoted 2 lines

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?"

Quoted 8 lines

sdt

_______________________________________________
LARTC mailing list
[email protected]
http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc

_______________________________________________
LARTC mailing list
[email protected]
http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc

#2 lore raw
In reply to Sebastian Tennant
Quoted 4 lines
Quoted 4 lines

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

_______________________________________________
LARTC mailing list
[email protected]
http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc