ssh tullen

Discussion in 'Perl Misc' started by Dr Eberhard Lisse, Jan 16, 2012.

  1. Hi,

    I have a PostgreSQL database behind a firewall which I can access
    from a fixed IP address but obviously not while on the road where I
    must issue something like:

    ssh -N -C -L 5433/localhost/5432

    (using publik/private key combination) and then run my script to
    generate the report.

    I can in a slightly different context using Net::SSH issue commands
    to the remote host, but I have been unable to figure out how to open
    a tunnel from within the perl script (preferably with a module, but
    that's not really the issue), then do my usual thing, and then close
    the tunnel again.

    Is this a unique problem? Or can someone point me to a code
    fragment that does something like this...

    el
    Dr Eberhard Lisse, Jan 16, 2012
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. loial
    Replies:
    0
    Views:
    400
    loial
    Feb 3, 2009
  2. loial
    Replies:
    0
    Views:
    403
    loial
    Feb 10, 2009
  3. Tench Johnson
    Replies:
    1
    Views:
    290
    Biff Tannen
    Apr 23, 2010
  4. salamond

    net/ssh in ruby. ssh.exec fails

    salamond, Feb 17, 2011, in forum: Ruby
    Replies:
    0
    Views:
    241
    salamond
    Feb 17, 2011
  5. Dr Eberhard Lisse

    ssh tullen

    Dr Eberhard Lisse, Jan 16, 2012, in forum: Perl Misc
    Replies:
    20
    Views:
    618
    Dr Eberhard Lisse
    Jan 31, 2012
Loading...

Share This Page