[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#526904: /usr/bin/ssh: ssh fails to execure command on remote side.



Package: openssh-client
Version: 1:5.1p1-5
Severity: grave
File: /usr/bin/ssh
Justification: renders package unusable

Hello, I am tring to execute command on remote machine. Both machines have the 
same hardware and the same Debian installation. When I try to do 'ssh -v host cmd'
ssh simply hags forever. If I use 'ssh -t host cmd' command is being executed. These
commands are made from command prompt by hands. Here is a log:

-- FAIL --
someuser@somehost:~$ ssh -v lan@XYZ.com 'ls -la'
OpenSSH_5.1p1 Debian-5, OpenSSL 0.9.8g 19 Oct 2007
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: Applying options for *
debug1: Connecting to XYZ.com [xx.yy.zz.aa] port 22.
debug1: Connection established.
debug1: identity file /home/XYZ/.ssh/identity type -1
debug1: identity file /home/XYZ/.ssh/id_rsa type -1
debug1: identity file /home/XYZ/.ssh/id_dsa type 2
debug1: Checking blacklist file /usr/share/ssh/blacklist.DSA-1024
debug1: Checking blacklist file /etc/ssh/blacklist.DSA-1024
debug1: Remote protocol version 2.0, remote software version OpenSSH_5.1p1 Debian-5
debug1: match: OpenSSH_5.1p1 Debian-5 pat OpenSSH*
debug1: Enabling compatibility mode for protocol 2.0
debug1: Local version string SSH-2.0-OpenSSH_5.1p1 Debian-5
debug1: SSH2_MSG_KEXINIT sent
debug1: SSH2_MSG_KEXINIT received
debug1: kex: server->client aes128-cbc hmac-md5 none
debug1: kex: client->server aes128-cbc hmac-md5 none
debug1: SSH2_MSG_KEX_DH_GEX_REQUEST(1024<1024<8192) sent
debug1: expecting SSH2_MSG_KEX_DH_GEX_GROUP
debug1: SSH2_MSG_KEX_DH_GEX_INIT sent
debug1: expecting SSH2_MSG_KEX_DH_GEX_REPLY
debug1: Host 'XYZ.com' is known and matches the RSA host key.
debug1: Found key in /home/XYZ/.ssh/known_hosts:11
debug1: ssh_rsa_verify: signature correct
debug1: SSH2_MSG_NEWKEYS sent
debug1: expecting SSH2_MSG_NEWKEYS
debug1: SSH2_MSG_NEWKEYS received
debug1: SSH2_MSG_SERVICE_REQUEST sent
debug1: SSH2_MSG_SERVICE_ACCEPT received
debug1: Authentications that can continue: publickey,password
debug1: Next authentication method: publickey
debug1: Trying private key: /home/XYZ/.ssh/identity
debug1: Trying private key: /home/XYZ/.ssh/id_rsa
debug1: Offering public key: /home/XYZ/.ssh/id_dsa
debug1: Authentications that can continue: publickey,password
debug1: Next authentication method: password
lan@XYZ.com's password:
debug1: Authentication succeeded (password).
debug1: channel 0: new [client-session]
debug1: Requesting no-more-sessions@openssh.com
debug1: Entering interactive session.
debug1: Sending environment.
debug1: Sending env LANG = en_US.UTF-8
debug1: Sending command: ls -la
-- HERE it waits forever. So I hit Ctrl-C --
debug1: channel 0: free: client-session, nchannels 1
debug1: Killed by signal 2.
someuser@somehost:~$

-- SUCCESFUL ---
someuser@somehost:~$ ssh -vt lan@XYZ.com 'ls -la'
OpenSSH_5.1p1 Debian-5, OpenSSL 0.9.8g 19 Oct 2007
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: Applying options for *
debug1: Connecting to XYZ.com [xx.yy.zz.aa] port 22.
debug1: Connection established.
debug1: identity file /home/XYZ/.ssh/identity type -1
debug1: identity file /home/XYZ/.ssh/id_rsa type -1
debug1: identity file /home/XYZ/.ssh/id_dsa type 2
debug1: Checking blacklist file /usr/share/ssh/blacklist.DSA-1024
debug1: Checking blacklist file /etc/ssh/blacklist.DSA-1024
debug1: Remote protocol version 2.0, remote software version OpenSSH_5.1p1 Debian-5
debug1: match: OpenSSH_5.1p1 Debian-5 pat OpenSSH*
debug1: Enabling compatibility mode for protocol 2.0
debug1: Local version string SSH-2.0-OpenSSH_5.1p1 Debian-5
debug1: SSH2_MSG_KEXINIT sent
debug1: SSH2_MSG_KEXINIT received
debug1: kex: server->client aes128-cbc hmac-md5 none
debug1: kex: client->server aes128-cbc hmac-md5 none
debug1: SSH2_MSG_KEX_DH_GEX_REQUEST(1024<1024<8192) sent
debug1: expecting SSH2_MSG_KEX_DH_GEX_GROUP
debug1: SSH2_MSG_KEX_DH_GEX_INIT sent
debug1: expecting SSH2_MSG_KEX_DH_GEX_REPLY
debug1: Host 'XYZ.com' is known and matches the RSA host key.
debug1: Found key in /home/XYZ/.ssh/known_hosts:11
debug1: ssh_rsa_verify: signature correct
debug1: SSH2_MSG_NEWKEYS sent
debug1: expecting SSH2_MSG_NEWKEYS
debug1: SSH2_MSG_NEWKEYS received
debug1: SSH2_MSG_SERVICE_REQUEST sent
debug1: SSH2_MSG_SERVICE_ACCEPT received
debug1: Authentications that can continue: publickey,password
debug1: Next authentication method: publickey
debug1: Trying private key: /home/XYZ/.ssh/identity
debug1: Trying private key: /home/XYZ/.ssh/id_rsa
debug1: Offering public key: /home/XYZ/.ssh/id_dsa
debug1: Authentications that can continue: publickey,password
debug1: Next authentication method: password
lan@XYZ.com's password:
debug1: Authentication succeeded (password).
debug1: channel 0: new [client-session]
debug1: Requesting no-more-sessions@openssh.com
debug1: Entering interactive session.
debug1: Sending environment.
debug1: Sending env LANG = en_US.UTF-8
debug1: Sending command: ls -la
total 16
debug1: client_input_channel_req: channel 0 rtype exit-status reply 0
debug1: client_input_channel_req: channel 0 rtype eow@openssh.com reply 0
drwxr-xr-x 3 lan  lan    90 2009-05-04 14:39 .
drwxr-xr-x 8 root root   78 2009-03-06 07:59 ..
-rw------- 1 lan  lan   172 2009-05-04 15:06 .bash_history
-rw-r--r-- 1 lan  lan   220 2009-03-03 15:24 .bash_logout
-rw-r--r-- 1 lan  lan   414 2009-03-03 15:24 .bash_profile
-rw-r--r-- 1 lan  lan  2227 2009-03-03 15:24 .bashrc
drwx------ 2 lan  lan    24 2009-05-04 14:39 .ssh
debug1: channel 0: free: client-session, nchannels 1
Connection to XYZ.com closed.
Transferred: sent 2224, received 2616 bytes, in 0.2 seconds
Bytes per second: sent 11484.3, received 13508.6
debug1: Exit status 0
someuser@somehost:~$


-- System Information:
Debian Release: 5.0.1
  APT prefers stable
  APT policy: (500, 'stable')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.24-etchnhalf.1-amd64 (SMP w/8 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages openssh-client depends on:
ii  adduser         3.110                    add and remove users and groups
ii  debconf [debcon 1.5.24                   Debian configuration management sy
ii  dpkg            1.14.25                  Debian package management system
ii  libc6           2.7-18                   GNU C Library: Shared libraries
ii  libcomerr2      1.41.3-1                 common error description library
ii  libedit2        2.11~20080614-1          BSD editline and history libraries
ii  libkrb53        1.6.dfsg.4~beta1-5lenny1 MIT Kerberos runtime libraries
ii  libncurses5     5.7+20081213-1           shared libraries for terminal hand
ii  libssl0.9.8     0.9.8g-15+lenny1         SSL shared libraries
ii  passwd          1:4.1.1-6                change and administer password and
ii  zlib1g          1:1.2.3.3.dfsg-12        compression library - runtime

Versions of packages openssh-client recommends:
ii  openssh-blacklist             0.4.1      list of default blacklisted OpenSS
pn  openssh-blacklist-extra       <none>     (no description available)
pn  xauth                         <none>     (no description available)

Versions of packages openssh-client suggests:
pn  keychain                      <none>     (no description available)
pn  libpam-ssh                    <none>     (no description available)
pn  ssh-askpass                   <none>     (no description available)

-- no debconf information



Reply to: