Connecting to sFTP from within an iOS App - ios

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)

Related

Implementing phpsysinfo into zf2

does anybody know how to implement phpsysinfo into a ZF2 project?
I need a brief overview what is hapening on the server without having to connect via ssh to the server. There are a lot of monitoring software I know, but this will do the job for me. Thx for any reply...
phpSysInfo is a standalone software, which is not intended to be integrated into another project (e.g. ZF2)
You can probably reuse some classed from the source code, if you build a ZF2 module

How to set up a sftp server on 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...

iOS - SimpleFTP How to use SFTP (ssh)?

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

How to connect to network share drive programmatically?

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.

what is the best free ftp component for delphi

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

Resources