开发者

Upload file from iphone using SFTP protocol

I have one audio file captured from my iphone. I want to up开发者_开发问答load this audio file using SFTP protocol?

Is is possible? Is there any third party library available? Is it the same as putting file on FTP?


Apple has a tech note on this subject.

http://developer.apple.com/iphone/library/technotes/tn2009/tn2152.html#SECFILETRANSFERPROTOCOLS

The following section discuses support for file transfer. Note: There have been numerous attempts to make a secure 'FTP'. These include: FTPS — This is FTP over TLS. It is not supported by any built-in APIs on iPhone OS or Mac OS X. SFTP — This is a new file transfer protocol based on SSH. There are no SSH APIs built in to either iPhone OS or Mac OS X. On Mac OS X you can access SSH functionality by sublaunching various command line tools. This is not an option on iPhone OS.


The SFTP and FTP are completely different protocols.

Basically, there are the following file transfer protocols around:

  • FTP – the plain old FTP protocol that has been around since 1970s. The acronym stands for "File Transfer Protocol". It usually runs over TCP port 21.

  • SFTP – another, completely different file transfer protocol that has nothing to do with FTP. SFTP runs over an SSH session, usually on TCP port 22. It has been around since late 1990s. The acronym actually stands for "SSH File Transfer Protocol".

  • FTPS or FTP/SSL - the plain, old FTP protocol run over TLS/SSL secure communication channel. FTP and FTPS relation is the same as HTTP and HTTPS relation to each other.

  • Secure FTP - depends on context. Sometimes means FTPS, sometimes SFTP.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜