SFTP file format question

Hi,

We here at State of Iowa are trying to SFTP an ascii text file off of an IBM server over to our DOL SUN Server using Solaris 5.8. After doing the secure handshake login all I am doing at present is "sftp> get testfile". Somehow in pulling the file in from the IBM server to the SUN server it is converting it to machine language. Has anyone else run into this problem, and if so how were you able to over come it?

Thanks,

wsiefkas

Are you sure it wasn't stored in EBCDIC on the IBM?
Try using the dd UNIX tool to convert from EBCDIC to ASCII.

Some older ftp implementations hid the fact - they automatically converted EBCDIC<->ASCII for you.

Jim,

We are sure its in ascii format on the IBM server as they did a "file" command on it to see its format. Upon further research with the DOL IT team, it is believed the States, server needs to have a different switch setting for file transfers. I am waiting to hear back from our ITE IBM server guys.

Thanks!