SCP/SSH from OpenSSH (Solaris, HP, ...) to Solaris Secure Shell' D returns error code (-1) even upon successful completion?

From: Wanke Matthias (Matthias.Wanke@itellium.com)
Date: Tue Mar 30 2004 - 10:44:52 EST


Hi,

anybody experienced similar problems when copying via scp from an (open)sshd
to a solaris secure shell'd? This happens on solaris8/openssh,
hp-ux11i/openssh, cygwin, ...
This problem does NOT appear when copying between two solaris secure shells
or when copying from solaris secure shell to openssh. It MAY be timing
related as a "trussed sshd" on the receiving end gives a normal exit
code(sometimes) on the client side!?
Unfortunately the exit code is crucial in file transfer batch jobs where a
transfer should be retried in case of an error from scp; actually a check on
the file data itself is not an option.

Any thoughts on this?

Cheers,
Mat

--
root@sunadm1:/var/tmp
# scp -v test.txt sunh:/var/tmp; echo $?   
Executing: program /usr/local/bin/ssh host sunh, user (unspecified), command
scp -v -t /var/tmp
OpenSSH_3.7.1p2, SSH protocols 1.5/2.0, OpenSSL 0.9.7b 10 Apr 2003
debug1: Reading configuration data /usr/local/etc/ssh_config
debug1: Connecting to sunh [xx.xx.xx.xx] port 22.
debug1: Connection established.
debug1: identity file /.ssh/identity type -1
debug1: identity file /.ssh/id_rsa type -1
debug1: identity file /.ssh/id_dsa type 2
debug1: Remote protocol version 2.0, remote software version Sun_SSH_1.0
debug1: match: Sun_SSH_1.0 pat Sun_SSH_1.0*
debug1: Enabling compatibility mode for protocol 2.0
debug1: Local version string SSH-2.0-OpenSSH_3.7.1p2
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: sending SSH2_MSG_KEXDH_INIT
debug1: expecting SSH2_MSG_KEXDH_REPLY
debug1: Host 'sunh' is known and matches the RSA host key.
debug1: Found key in /.ssh/known_hosts:118
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: Offering public key: /.ssh/id_dsa
debug1: Server accepts key: pkalg ssh-dss blen 435
debug1: Authentication succeeded (publickey).
debug1: channel 0: new [client-session]
debug1: Entering interactive session.
debug1: Sending command: scp -v -t /var/tmp
Sending file modes: C0644 3914 test.txt
test.txt
100% 3914     0.0KB/s   00:00    
debug1: channel 0: free: client-session, nchannels 1
debug1: fd 0 clearing O_NONBLOCK
debug1: fd 1 clearing O_NONBLOCK
debug1: Transferred: stdin 0, stdout 0, stderr 0 bytes in 0.3 seconds
debug1: Bytes per second: stdin 0.0, stdout 0.0, stderr 0.0
debug1: Exit status -1
1
_______________________________________________
sunmanagers mailing list
sunmanagers@sunmanagers.org
http://www.sunmanagers.org/mailman/listinfo/sunmanagers


This archive was generated by hypermail 2.1.7 : Wed Apr 09 2008 - 23:28:22 EDT