Re: The -g and -R options

From: Richard E. Silverman (slade@shore.net)
Date: 12/21/02


From: slade@shore.net (Richard E. Silverman)
Date: 21 Dec 2002 05:56:40 -0500


>>>>> "C" == Cylurian <fsromero@hotmail.com> writes:

    C> if I type ssh -L 5003:time.csudl.edu:5003 -N jro@time.csudh.edu

    C> I know that what ever comes out from the user to the server will be
    C> secure, but is that also true when the data goes from the server to
    C> the user?

This is ambiguous; I will assume you're talking about data passing over an
instance of the port-forwarding tunnel here. Anyway, since the tunnelling
is entirely symmetric, whatever you "know" about one direction will also
be true of the other. Since in this case both the unprotected legs of the
tunnel are loopback connections, one would usually say they are secure, in
the sense that it can't easily be monitored. What makes you think the
situation would be different depending on direction of data flow?

    C> If the tunnel is secure both ways, then what are the -g and -R
    C> options for?

This is an odd question, since neither -g nor -R serve to increase
security. As documented, -g allows non-loopback connections to the
forwarded port, so that one leg might *not* be secure. -R reverses the
direction of connection establishment for instances of the tunnel: the SSH
server forwards the port, rather than the client.

-- 
  Richard Silverman
  slade@shore.net


Relevant Pages

  • Scalability of Multiple SSL Sockets (Java 1.4.2)
    ... After working on a secure port forwarder, I've realized I could use the same ... because I can use keystores to authenticate not only the server for the ... the Selector object was for scalability. ... is probably a vm, just how many simultaneous connections could ...
    (comp.lang.java.programmer)
  • Re: Need news-server to test XPAT.
    ... but my server replies with "501"; ie. 'Command not supported'. ... It being a secure server, ... connections. ...
    (news.software.readers)
  • Secure client-db-connection
    ... calls to the database via ADO and BDE connections. ... is no middle-tier app server inbetween to take client ... way that I can enforce a secure connection between my ...
    (microsoft.public.sqlserver.security)
  • Re: Need news-server to test XPAT.
    ... but my server replies with "501"; ie. 'Command not supported'. ... It being a secure server, ... connections. ...
    (news.software.readers)
  • The -g and -R options
    ... I know that what ever comes out from the user to the server will be ... If the tunnel is secure both ways, then what are the -g and -R options ...
    (comp.security.ssh)