I am trying to use Apple's code from their SimpleFTPSample project to upload/list directory in my app. I am able to get it working on a server using just FTP, but I need it to now work on a server that requires SFTP logins.
Is there a way to set the NSStream to use 'SFTP' when connecting?
Here is Apple's project example: https://developer.apple.com/library/ios/samplecode/simpleftpsample/introduction/intro.html
FTP and SFTP are very different protocols. Have a look at https://github.com/karelia/ConnectionKit - this is a library that supports ftp, sftp and webdav transfers
Ooops! I missed where the iOS bit wasn't ready yet! Perhaps the libraries in this answer will help
Related
I would like to be able to access a WebDAV server from my iOS 7+ and Mac OS app. Does anyone know to a good and reliable library to support this?
I have been searching for a library quit a while now but so far I hadn't any success. Of course there are several threads about this topic (here on SO and elsewhere) but most of theme are quite out dated.
DZWebDAVClient looks quite promising. But it is based on an older version of AFNetworking has not been update for quite a while. I have not been able to find any working example and was not able to get a connection to my own WebDAV server.
The same is true for wtclient and ConnectionKit
Has someone used a WebDAV client library in production? Any recommendations what lib can be used or which one is not good?
Please look at GCDWebServer
it includes webdav library for MAC OSX and IOS
In my project, I would like to set up an sftp server on my iOS device which may use the app sandbox directory as root. Not a client which can connect to a sftp server.
Is it allowed to do so? What I've found on the internet are sftp clients , nothing for a server on iOS.
If we are allowed, is there any library we can use?
If not, how may I build the server myself?
I would go for an SFTP server written in C or C++.
There are lots of examples for these languages. e.g. sftp-server.c
You add the .c and .h file to the iOS project, you change the name of the main function to something else, you run the function formerly known as main in a separate thread (to liberate the main thread), and Bob's your uncle...
I'm new to Objective C and Xcode, but was wondering how to connect to a SFTP within my application. I've successfully connected to FTPs before, but was hoping to keep more secure in the future. When connecting with a regular computer you need a special SFTP client, so I wasn't sure what steps I'd have to take to connect within an iOS App.
Also, what are your opinions of SSH FTPs Vs. SFTPs?
There are plenty of open source libraries like NMSSH or DLSFTPClient. Please, don't use proprietary components, support open source.
Your best bet is to download a library and put that into your app. I would recommend Chilkat. He has wrote a lot of stuff for sftp.
Good luck.
look at some of these (http://www.example-code.com/ios/sftp.asp)
I would like to write a program on iPad to connect network share drive (similar to FileBrowser application). However, I cannot find many resources and sample code on the Web. Does anyone know how to do it? Any website for reference? Thanks so much!
Connecting to an SMB shared drive would be the same as connecting to any SMB server. Now I've googled a bit and found that SMB was developed by Windows, and not given free, but that it has been successfully reversed engineered and that it has been ported to Linux, Unix, whatever by the name Samba.
I dug a bit deeper and easily found this link: Windows Filesharing library for iOS. It provides a link to an iOS framework which enables you to connect to a Samba/SMB drive.
Since I never tried to connect to a SMB/Samba server, I don't know if the framework will work, I've never tested it. But by copying some source files to your own project you normally should get it working.
Note: Check the license of any third-party framework you use.
I'm using delphi6, and our company don't want to upgrade it,
and I found Tidftp lack the MLSD command,
So what is the free ftp component you are using now?
ps : I searched for one on Google, but I don't know which is stable and standard.
I haven't used Synapse, but I hear good things and it looks good. The SVN on Sourceforge has much newer code.
Support for FTP protocol (support many
firewalls including custom ones,
upload and dowload resuming, transfer
between two FTP servers). Implemented
directory list parsing too. SSL/TLS
support.
Support for TFTP protocol (client and
server).
Beyond that I have had good luck with Indy's TidFTP, although I have used Indy 9 more than 10.
BTW, I don't know about the MLSD command specifically, but it seems like there was a way to send custom commands to the server with Indy. I know I actually used it to implement a more detailed directory listing, so that may have been the MLSD then . . ..
Done!
download the newest Indy component, and TidFtp is good to use!
You can also check ICS TFtpCli
http://www.overbyte.be/frame_index.html