ftp problem

i want to sftp a .zip file.when i am doing get abc.zip thenabc.zip is getting copied to my home folder.
but on clicking abc.zip on my home folder to open it i am getting error message as

"Unable to unarchive abc.zip into <homefolder> name"
How to sftp the Zip file

Thanks

try type bin before you use the get command.

It might be that the file gets downloaded as a textfile and not a binary file

/peter

There is no binary/text transfer modes in SFTP unlike FTP. All file transfers happen in binary mode only. Try unzipping the file on the source itself to verify if the file is compressed ok. Sometimes a file gets corrupt during downloads also.

You can also try using scp instead of sftp as follows:

scp username@destination:abc.zip .