ssh freezing when executing a remote command

From: Alexandre Hamelin (quadid|@|videotron.ca)
Date: 03/01/03

  • Next message: GD: "Re: ssh client on HP-UX"
    From: "Alexandre Hamelin" <quadid|@|videotron.ca>
    Date: Fri, 28 Feb 2003 19:32:07 -0500
    
    

    Hello,

        I experience a problem using ssh when I want to execute a remote command
    then log off immediately. If any of you know where the problem lies, I'd
    appreciate a pointer or an explanation. This occurs under Linux and SunOS.
    More details.

        I run RedHat 8.0 with the latest ssh built from source, on my local
    computer at home. And there's those RedHat 6.1, 7.3 and SunOS 5.8 servers I
    often connect to. The normal ssh connection works fine, no problem there.
    But when I try the following format:

        $ ssh host cmd

    so that it connects, executes cmd and disconnects immediately, it hangs and
    I have to kill it using Ctrl-C. Using -vvv does not get me any farther
    either; it blocks at:

        ...
        debug1: channel 0: open confirm rwindow 0 rmax 16384
        debug2: channel 0: rcvd adjust 32768
        <freeze here, no more sign of life>

        Trying this locally on my RH8 box works like a charm. Tried on a
    friend's computer with a positive result. Does NOT work if I launch the
    command from any of these three server to another of these. There is no
    problem executing a command from a server on my computer at home.

        The servers use the following version of OpenSSH and OpenSSL:

        RH7.3 OpenSSH 3.1p1, OpenSSL 0x0090602f
        RH6.1 OpenSSH 3.5p1, OpenSSL 0x0090700f
        SunOS5.8 OpenSSH 2.9p2, OpenSSL 0x0090602f

        I use public key authentication.

        I suspect a server configuration issue, but I'm not sure. I set up sshd
    multiple times in the past yet I never experienced this problem before.

        Anyone has a clue about this? Thanks in advance.

    Alex



    Relevant Pages

    • OpenSSH Problem -Please Help, Thank you!
      ... I was wondering if you could help me with an OpenSSH problem I ... Pageant machine to my Windows XP OpenSSH remote machine (email server) ... and the command prompt showed I was in my home directory ...
      (comp.security.ssh)
    • Re: Incorrect protocol implementation by OpenSSH?
      ... when the server receives an SSH_MSG_CHANNEL_REQUEST message to ... SSH_MSG_CHANNEL_REQUEST message sent by the OpenSSH client contains a 0 ... OpenSSH client is not. ... single command lines. ...
      (comp.security.ssh)
    • Using Putty only with port forwarding
      ... On a Unix server I have OpenSSH 3.4p1 running. ... an account which should be used by a number of users only to do port ... not execute a command on the remote side, ...
      (comp.security.ssh)
    • Re: Urgent : SSH+PLINK command length problem
      ... PLINK is part of Putty and is a command line ssh client. ... I am using OpenSSH for windows as server. ...
      (comp.security.ssh)
    • Announce: OpenSSH 4.2 released
      ... OpenSSH 4.2 has just been released. ... implementation and includes sftp client and server support. ...
      (SSH)