1834604 Members
4012 Online
110069 Solutions
New Discussion

Re: SFTP vs FTP

 
Gamaliel
Frequent Advisor

SFTP vs FTP

Hi there,

Because of security i have to change from ftp to sftp, after that, i'm having some problems with the format of files i transfer... With ftp i was able to decide between binary or ascii transmition, now with sftp i can't find that property.

Any help?
4 REPLIES 4
Torsten.
Acclaimed Contributor

Re: SFTP vs FTP

AFAIK all transfers with SFTP are binary, there is no ascii mode.
For several reasons (performance), scp could be the better choice.

Hope this helps!
Regards
Torsten.

__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.

__________________________________________________
No support by private messages. Please ask the forum!

If you feel this was helpful please click the KUDOS! thumb below!   
Steven E. Protter
Exalted Contributor

Re: SFTP vs FTP

Shalom,

SFTP is smart. It knows the difference between ASCII and Binary.


Addendum
SFTP
1) Encrypted login/authentication
2) Encrypted data transmission

FTP
1) Password authentication in clear text
2) Data transmission not encrypted

In the FTP section item 1 means that anybody on the Internet can get you password with tcpdump or ethereal, which are both standard in Linux and free for Windows.

The argument against SFTP used to be there are no inexpensive clients. Firezilla eliminates this argument.

Oh yeah, did I mention ftp is too stupid to tell the difference between ascii and binary files? That sftp, the basic client that ships with openssh knows the difference out of the box?

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Gamaliel
Frequent Advisor

Re: SFTP vs FTP

Torsten, SEP,

Thanks, although I think SFTP could be smarter because the file i'm transfering feeds another system, and needs some format that I can't chose anymore...

Is there anything I can do to set this mode?

Regards,
Rick Garland
Honored Contributor

Re: SFTP vs FTP

What about the 'scp' command? This will do a secure copy of the file(s). This adhering to the security concerns you have expressed