1819794 Members
3431 Online
109607 Solutions
New Discussion юеВ

sftp binary & ascii

 
Barbara Flynn_1
Frequent Advisor

sftp binary & ascii

Hi

I am trying to sftp a file from my HP server but the command line doesn't recognise the "bin" or "ascii" commands, how do I specify my transfer method??

Thanks in advance
Barbara

4 REPLIES 4
Rick Garland
Honored Contributor

Re: sftp binary & ascii

sftp does not distinguish. Binary files or ascii files work in the transfer.

Another option you can use is scp - pretty much same thing

RAC_1
Honored Contributor

Re: sftp binary & ascii

On sftp prompt type ? or help

Anil
There is no substitute to HARDWORK
TwoProc
Honored Contributor

Re: sftp binary & ascii

In my worry and checking on files after I've transmitted them, it looks to me like sftp doesn't try to interpret/mess with line feeds in the files - so it's the equivalent of "binary" mode for ftp. When I've sent both binary and text files via sftp they always safely arrive with the same number of bytes that I sent them with - unlike ascii mode for ftp'ing a text file.
We are the people our parents warned us about --Jimmy Buffett
Fedon Kadifeli
Super Advisor

Re: sftp binary & ascii

I am trying to replace legacy (telnet, ftp, rlogin, rcp, remsh) commands with the secure equivalents (ssh, sftp, scp). I have installed T1471AA on HP-UX and the Cygwin equivalents on my Windows PC.

During my first usage of these commands, what I see missing from the sftp (and scp) command is:

(1) No ascii/binary file transfer option selection.
(2) No way of interactive prompting to multiple file transfers (like the ftp "prompt" and "mget/mput" commands).

Any suggestions and workarounds will be highly appreciated.