SUMMARY: How to set ascii mode in sftp

From: Dave Martini 1 <>
Date: Mon Oct 10 2005 - 17:03:07 EDT
Pretty much people said with sftp the transfer mode is automatic
and you don't set it. The transfers are all binary with sftp since
the transport mechanism is ssh.
One person said to run the dos2unix utility if the file being transferred
has dos style carriage returns in it.

Below is my original question

I'm using ssh and sftp into a Solaris 9 machine.

With ftp I can set the transfer mode between ascii and binary like this

ftp> ascii
200 Type set to A.
ftp> binary
200 Type set to I.

But in sftp I don't see that command available.

sftp > ascii
Invalid command.
sftp > binary
Invalid command.

How do I switch between ascii and binary transfer mode in sftp or is
it automatic?

Thanks much!
Dave Martini
sunmanagers mailing list
Received on Mon Oct 10 17:03:45 2005

This archive was generated by hypermail 2.1.8 : Thu Mar 03 2016 - 06:43:52 EST