ssh 2 tunnel to named pipe not working - please help

From: Jared (jared_at_hwai.com)
Date: 02/25/04


Date: 25 Feb 2004 06:23:21 -0800

OK, this is officially escalated to an annoyance. I have previously
been able to set up a scenario as follows:

ssh user@targethost 'cat > inbound_namedpipe' < outbound_namedpipe &

This works as expected under ssh v1 connectivity (i.e., RSA key
exchange method, ssh v1 authorized_keys file etc.). I am now trying
to do this using using ssh v2 (DSA key exchange, authorization file,
etc.) and it won't work . I can execute a remote command with no
problem ( ls -l | ssh user@targethost 'cat > textfile.txt'); but I'm
pretty sure I'm not getting to the named pipe on the target side.

The reasoning behind my diagnosis: The process on either side of the
tunnel is an Oracle export and import; under the ssh1 tunnel I could
see the activity (if you've ever used these utilities you know what I
mean). Under the ssh2 tunnel I see the export start but there is no
activiy on the import side. The named pipe on the outbound side is >
0 bytes while the named pipe on the inbound side stays at zero bytes.
I did a small export/import test using files and it worked fine. The
OS and Oracle versions are identical on both machines.

Here is my setup

TARGET MACHINE:

1. mknod /tmp/inpipe.dmp p
2. imp xxx/xxx (params) file=/tmp/inpipe.dmp &

SOURCE MACHINE

3. mknod /tmp/outpipe.dmp p
4. ssh user@targethost 'cat > /tmp/inpipe.dmp' < /tmp/outpipe.dmp &
5. exp xxx/xxx (params) file=/tmp/outpipe.dmp

As I mentioned above, this works under ssh v1. Is there a syntax
change for v2? I reread the man page but didn't pick up on one.

Please help - I have a data warehouse to move around and don't want to
spend the weekend moving tapes!

Thanks in advance -

Kind regards,
jh



Relevant Pages

  • ssh 2 tunnel to named pipe not working - please help
    ... This works as expected under ssh v1 connectivity (i.e., ... pretty sure I'm not getting to the named pipe on the target side. ... tunnel is an Oracle export and import; under the ssh1 tunnel I could ... imp xxx/xxx (params) file=/tmp/inpipe.dmp & ...
    (comp.unix.admin)
  • ssh 2 tunnel to named pipe not working - please help
    ... This works as expected under ssh v1 connectivity (i.e., ... pretty sure I'm not getting to the named pipe on the target side. ... tunnel is an Oracle export and import; under the ssh1 tunnel I could ... imp xxx/xxx (params) file=/tmp/inpipe.dmp & ...
    (comp.unix.solaris)
  • Re: What is The SSH?
    ... Building and Using SSH Tunnels ... What is an SSH tunnel? ... how to use it to make a connection to a server. ... You will need a working SSH client and server installation to build and test ...
    (microsoft.public.windows.server.networking)
  • RE: HOWTO Ping LAN???
    ... SSH to the box, and tunnel to other internal machines ... > network is by tunneling. ...
    (freebsd-questions)
  • SSH TCP forwarding: works with v1, not with v2 ssh
    ... that they're setting up the tunnels with no problem, ... I can get to the work ssh daemon: ... debug1: Connections to remote port 65002 forwarded to local address palimpsest:22 ... something answers (if I get "connection refused" there's no listener); ...
    (FreeBSD-Security)