ssh freezing when executing a remote command
From: Alexandre Hamelin (quadid|@|videotron.ca)
Date: 03/01/03
- Previous message: Darren Tucker: "Re: X11 Forwarding problem after 3.5p1 upgrade"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
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
- Next message: GD: "Re: ssh client on HP-UX"
- Previous message: Darren Tucker: "Re: X11 Forwarding problem after 3.5p1 upgrade"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|