Downloading/Uploading a file from a sftp server on the iphone - iphone

I need to connect to a sftp/scp server download a file, edit it and then reupload it.
As far as i know the SKD itself doesn't give you the ability for secure connections via ftp.
Any Ideas?

There we go: http://www.chilkatsoft.com/ssh-sftp-objc.asp
Does everything and a bit more. It's commercial but it doesn't really matter in our case as developing our own libssl2 wrapper would take weeks and weeks.

https://github.com/karelia/libssh2_sftp-Cocoa-wrapper
I have not tried it (yet...), but it's from the same person who made ConnectionKit. It's SFTP (I'm not sure if they mean secure ftp or ssh file transfer protocol)

Related

Build file server to upload files from IPhone and Mac using Raspberry Pie

Is it possible to build a File storage server using Raspberry Pi 3 to upload files from apple device using Wifi?
Yes, I believe so. Use nginx or Apache to host it and have a PHP or JS script that accepts files from an HTML form and saves them.
For me, Apache is easier to use, but I prefer nginx as it is much faster.
Once you have the server and HTML/PHP/JS set up just navigate to your Pi's IP in Safari. There you go!
You do, however, have limitations. Saving files to an external flash drive is your best option, unless your Pi is only being used as a server. In that case, make sure you chown the folder where you would like to save the files to the user that the server uses (www-data for nginx, I think it's the same for Apache)
If I was unclear about anything, just let me know!

How do you provide SQL with your software to a client?

I am new to SQL and I have a few silly questions I am wondering about.
I am a C# developer and have thus far only worked with access, .mdb files.
Let's say you develop some software for a client. It;s to be loaded on a few workstations and they need to connect to a central database.
When you use an .mdb file its pretty straight forward.
But how will you handle it if its SQL? Do you normally install SQL express on the server and just set the connection string in the software on the workstations. I've never heard of an easier way to get the SQL database up and running and available to be connected to. As far as I know you can't connect to a SQL database file like with an mdb file
Please help me understand a little bit better?
Assuming that you're going to deploy a web application, the SQL need to install in the server, then the website developer set their connection strings in the web.config file of the project, and the connection string is pointed to server.
you can read this regarding web.config: https://msdn.microsoft.com/en-us/library/bf7sd233%28v=vs.85%29.aspx

Any webdav or ftp server source code for iOS?

I need to implement a webdav or ftp server in iOS. Can someone suggest a webdav or ftp server open source project?
How about TouchHTTPD?
TouchHTTPD / Projects / iPhone WebDAV Server
TouchWebDAV Caveats
BASIC Auth Only (Digest auth coming soon)
No SSL
Not optimised for caching headers (If-*)
Cannot use Finder WebDAV and TouchWebDAV server on same machine!
WebDAV locking is totally fake.
Set attribute operations unsupported (so chmod, touch will not work)
Try https://github.com/swisspol/GCDWebServer#webdav-server-in-ios-apps it seems to be good and active.

How to setup a ubuntu server that can receive iOS ASIHTTPRequests

I have a ubuntu PC that I don't use for anything and I already know how to submit ASIHTTPRequests from an iPhone.
I would like to setup a very basic system where I can send an image from iPhone to my Ubuntu server and have my server just save that photo to a specific folder on my Ubuntu PC.
I have ZERO server knowledge but from what I have heard, this shouldn't be too terribly difficult to implement. Does anyone know of an easy way to do this? (Easy for someone with no server knowledge?)
Any web server will do. https://help.ubuntu.com/6.06/ubuntu/serverguide/C/httpd.html

How to get subdirectory from the FTP server?

I have implemented one application in which the user can connect with FTP server from the iphone using authentication, and get the listing of the directory.
Now when user touch on main directory then I want subdirectory listing.
How is it possible?
I would recommend that you take a look at the following link and framework that deal with FTP sessions and downloading/uploading, and listing/creating directories.
iPhone FTP Example that deals with listing/creating FTP directories
SimpleFTPSample
Simple FTP component for iPhone apps (inspired from the idea of ASIHTTPRequest)
s7ftprequest
With these two references you should be well on your way to getting your directory listing from a FTP server. Hope this info helps. Post a comment if need any additional help.