Re: OpenSSH to SSH2 scp.

From: Simon G (simon_greig_at_nospam.com)
Date: 05/01/03

  • Next message: Steve Beaty: "MSSH: a generic Windows 95/98 ssh client"
    Date: Thu, 1 May 2003 09:14:11 +0100
    
    

    Greg,

    When checking the path on the remote host are you checking it under the user
    that is running the sshd2 process rather than the user you log in as? i.e.
    root

    --
    Simon G
    UK
    "Greg Bailey" <gbailey@uk.ibm.com> wrote in message
    news:b8opir$pje$1@sp15at20.hursley.ibm.com...
    > Hi,
    >
    > I'm trying to scp a file from a local AIX box running OpenSSH to a remote
    > linux server running (I think) SSH2. I've got authentication working quite
    > happily using ssh2 DSA keys and can ssh onto the remote server. However
    when
    > I try to scp a file onto the remote server, I get an error message
    (extract
    > below). I've looked on the web and have found frequent mention of this
    > problem, with the solution being to ensure that a copy of scp1 is in the
    > path. However, as far as I can tell, it is. Are there any other reasons I
    > could be getting this error message?
    >
    > remote_host:~$ whereis scp1
    > scp1: /usr/local/bin/scp1
    > remote_host:~$ ls -l /usr/local/bin/scp1
    > -rwxr-xr-x    1 root     root       116017 Jul 19  2002
    /usr/local/bin/scp1
    > remote_host:~$ file /usr/local/bin/scp1
    > /usr/local/bin/scp1: ELF 32-bit LSB executable, Intel 80386, version 1,
    > dynamically linked (uses shared libs), not stripped
    >
    > Kind regards
    > Greg
    >
    > Error message:
    > --------------------------------------------------------------------------
    --
    > ----------
    > debug1: Sending command: scp -v -t /home/ibmcomp/.
    > debug1: channel 0: open confirm rwindow 100000 rmax 32768
    > scp: warning: Executing scp1 compatibility.
    > debug1: client_input_channel_req: channel 0 rtype exit-status reply 0
    > debug1: channel 0: rcvd close
    > debug1: channel 0: output open -> drain
    > debug1: channel 0: input open -> closed
    > debug1: channel 0: close_read
    > debug1: channel 0: obuf empty
    > debug1: channel 0: output drain -> closed
    > debug1: channel 0: close_write
    > scp: FATAL: Executing ssh1 in compatibility mode failed (Check that scp1
    is
    > in your PATH).
    > debug1: channel 0: almost dead
    > debug1: channel 0: gc: notify user
    > debug1: channel 0: gc: user detached
    > debug1: channel 0: send close
    > debug1: channel 0: is dead
    > debug1: channel 0: garbage collecting
    > debug1: channel_free: channel 0: client-session, nchannels 1
    > --------------------------------------------------------------------------
    --
    > --------------
    >
    >
    

  • Next message: Steve Beaty: "MSSH: a generic Windows 95/98 ssh client"

    Relevant Pages

    • Are remote pipes fixed in 3.5?
      ... > and ssh will never return. ... SSH2 will shut down the channel without telling the ... > remote side that stdout has closed. ... > debug1: channel request 0: exec ...
      (SSH)
    • Are remote pipes fixed in 3.5?
      ... SSH2 will shut down the channel without telling the ... remote side that stdout has closed. ... debug1: channel request 0: exec ...
      (SSH)
    • Re: SCP failing
      ... It seems that I don't have permission to run sshd on the remote ... rest of the debug output after the "Sending command:" line. ... debug1: channel request 0: exec ...
      (comp.security.ssh)
    • Re: Are remote pipes fixed in 3.5?
      ... > and ssh will never return. ... SSH2 will shut down the channel without telling the ... > remote side that stdout has closed. ... > debug1: channel request 0: exec ...
      (SSH)
    • X11 forwarding help
      ... I'm using ssh to do X11 forwarding over a gateway and it seems to work fine ... debug1: Rhosts Authentication disabled, ... debug3: check_host_in_hostfile: match line 5 ... debug1: channel 0: new ...
      (SSH)