Re: SSH options re: NAT

From: Greyson M Fischer (Greyson_at_cleveland.feddata.com)
Date: 07/23/03


Date: 23 Jul 2003 18:15:37 GMT

Luke <run_faster@hotmail.com> wrote:
> Richard E. Silverman <res@qoxp.net> wrote in message news:<m2u19damom.fsf@darwin.oankali.net>...
>> >>>>> "LS" == Luke StClair <luke@stclair.homelinux.net> writes:
>>
>> LS> Thanks, that was the issue... so if i do anything on the machine
>> LS> with the real IP referring to localhost port 10022, it no longer
>> LS> refers to the remote machine's localhost, but my home computer's
>> LS> localhost?
>>
>> I'm sorry, I can't parse this -- can you ask a question about a concrete
>> example?
>>
>
> My fault... i was too excited that it worked.
>
> My home machine is NAT'ed to a 10.x.x.x IP.
> My work machine is a public IP.
>
> On my home machine:
> ssh -fNR 10022:myhomemachine.com:22 myname@myWorkMachine
>
> Now, when I ssh -p 10022 localhost form myWorkMachine, this works
> because I make a connection from myWorkMachine to myWorkMachine on
> port 10022, which goes to port 22, which is connected to my home
> machine via the ssh -fNR command I did before? So with ssh you can
> change how the ports are "interpreted" (i know that's not the
> technical word) on a remote machine?

Correct. (Sorry, got a bit confused along the way, since I go from work
to home instead of home to work)

Although, just as a matter of principle -- use telnet unless you need
more forwarded ports... it's more lightweight, and since everything is
traveling over a secure pipe anyway, there's no need to add an extra
layer which would just cause the connection to be slower.

-- 
Greyson


Relevant Pages

  • Re: remote sshd problems
    ... > I am trying to access my home machine from work - it works fine at ... > I then killed the ssh dameon, restarted xinetd, and restarted ssh to ... I use standard port 22: ... Can you get a connection with your port on that machine? ...
    (alt.os.linux.suse)
  • Re: VMS and Comcast cable modem
    ... > At home I have a broadband Comcast connection via a cable modem. ... > connected to this router via a firewall router). ... > of the home machine is obtained via DHCP. ... > contacting Comcast, whose technical support staff have a very PC-centric ...
    (comp.os.vms)
  • X connection through router and firewall
    ... If -X option is used with ssh, hostB tries to set its DISPLAY variable ... At home I am using a DSL connection with a router. ... 22 to my machine and ssh connection to my home machine works fine. ...
    (comp.os.linux.x)
  • X connection through router and firewall
    ... If -X option is used with ssh, hostB tries to set its DISPLAY variable ... At home I am using a DSL connection with a router. ... 22 to my machine and ssh connection to my home machine works fine. ...
    (comp.os.linux.networking)
  • X connection through router and firewall
    ... If -X option is used with ssh, hostB tries to set its DISPLAY variable ... At home I am using a DSL connection with a router. ... 22 to my machine and ssh connection to my home machine works fine. ...
    (comp.os.linux.misc)