Couldn't stat remote file: Bad message

Discussion of Co:Z sftp, a port of OpenSSH sftp for z/OS
Post Reply
Ind@os1
Posts: 2
Joined: Thu Dec 18, 2014 10:44 am

Couldn't stat remote file: Bad message

Post by Ind@os1 »

Hello,
We receive the message "Couldn't stat remote file: Bad message" after attempting a put command to a SFTP server using debug. The message, "Couldn't get handle: Bad message", then follows.

Please advise. This works fine using WinSCP.

Here is the debug output from the put command:

cozsftp> put //DD:APT71A /aud121714.pgp
[20.264] debug3: Received stat reply T:101 I:2
[20.264] debug1: Couldn't stat remote file: Bad message
ZosDataset: Opening dataset DD:APT71A for read
Uploading //DD:APT71A to /aud121714.pgp
[20.284] debug3: Sent message SSH2_FXP_OPEN I:3 P:/aud121714.pgp
[20.305] Couldn't get handle: Bad message
ZosDataset: Closing dataset //CAPSP.NATCITY.ENCRYPT.ASC - 0 records read, 0 bytes sent
[20.312] debug3: process_put() err=-1


Thanks.
Ind@os1
Posts: 2
Joined: Thu Dec 18, 2014 10:44 am

Re: Couldn't stat remote file: Bad message

Post by Ind@os1 »

We tried it again without the forward slash in rfile and it worked fine.

Instead of using:
rfile=/aud121714.pgp

We used:
rfile=aud121714.pgp
Post Reply