How to SSH into an iPhone?
To SSH into an iPhone, you must jailbreak your device, then download the Cyberduck application on your computer to establish a secure connection between your computer and iPhone. Part 1 Jailbreaking your iPhone Download Article 1
How to access data files on a non-jailbroken iPhone?
You can't just access any file in a non-jailbroken iPhone. You can access data files for your own programs during development using Xcode's Organizer, go to Devices -> your iphone -> Summary -> Applications -> your app, click on the triangle thingy to show the Application Data, which you can download.
How to jailbreak an iPhone?
Connect your iPhone to your computer using a USB cable. iTunes will launch automatically upon recognizing your iPhone. Click on your iPhone within the left sidebar of your iTunes session. Click on “Back Up Now” so iTunes can save a recent copy of all your data. Jailbreaking your iPhone will wipe all data from your device.
How do I transfer files from OpenSSH to iPhone or iPad?
Transferring files to the iPhone or iPad is just a matter of using SFTP after OpenSSH has been installed and is running. You’ll use the same IP address, login, and password as connecting with SSH, just from an ftp client instead of the Terminal. A few good free FTP clients are CyberDuck for Mac, or Filezilla for Mac, Windows, and Linux.