I found a nice user entry on a german iPhone forum giving some examples how to quickly restore all Cydia applications after a full iPhone firmware upgrade or a restore. No more searching around in Cydia for all the packages you had installed before. A few preparational steps and you could save a lot of time later on.
Your SSH server on the iPhone is already set up. Now you want to make sure you get all the files from you iPhone backed up? You plan to change a few files on you iPhone and want to make sure you can revert to the original files?
iTunes will not backup all neccessary files. And even if it did backup your specific file, it is not that easy to get the specic file out of an iTunes backup. (I will give you a post how to extract files from iTunes backup files tomorrow.)
So my advice is to copy all files from your iPhone to your computer. Its quite simple!
You just tried to login into your iPhone and your terminal gave you a massive warning?
Something like:
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@ WARNING: POSSIBLE DNS SPOOFING DETECTED! @
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Annoyed to search for your iPhone IP-address every time it connects to one of your (DHCP) WiFi networks? Today you find it at 10.0.1.3, tomorrow at 10.0.1.4 because your aunt maggie just happened to reserve one of your usual IP numbers while surfing on your WiFi internet connection?
I just found out a small little extra that I was never aware of: You can use the name you gave your iPhone on iTunes to login into your phone. Just add a .local to the name.
So you managed to install the SSH server on your iPhone. But now, every time you want to connect from your Mac to your iPhone via SSH you have to enter your password? You set up a backup procedure via rsync (will be the next post) and now it does stop every time at the password prompt? No problem. SSH does know different kinds of authentication. One is password, another one is the use of keys. Thes keys are stored as key-files on your computer and on your phone. If they exist and they match no password is required to login. And as long as your computer is safe, the iPhone will be as well. So make sure your key-files on the computer are safe. I use FileVault on my MacBook Pro.
7 easy steps to create your automatic login:
Ok, folks. The first part should be know to quite a few people, it will give you a “quick & dirty” short manual how to install a SSH server on your brand new iPhone running Firmware 2.0. As of now the firmware 2.0.1 is not jailbroken, so please do not upgrade to 2.0.1 unless the people at iPhone Dev will tell you.
The second part will give you a quick advice how to secure your new SSH server.
So the first few entries should explain to you how to install a SSH-Server on your iPhone (OpenSSH) and how to connect to your phone from a SSH-client via WiFi. I realized there are quite a lot of short manuals on the web. But most of them do not give you full advice how to secure your SSH server on the iPhone. You end up with a device that can be open to everyone – using standard passwords!
Well, this place should give you some advice how to use your Apple iPhone. I own 4 of them right now, two 2G phones and two 3G phones. Running every Firmware from 1.1.4 to 2.0.1. In the last couple of months I spent quite a lot of time searching for specific tutorials how to jailbreak, unlock and finally use your iPhone. I am a regular Mac OSX 10.5 and a Windows-XP user. But most of the time the iPhones will be synced to a Mac. Since I am quite fluent with the OSX BSD-unix on every Mac I do a lot of iPhone tweaking by logging into the iPhone unix shell. I could not find any palce on the web that could easily answer all of my beginners questions so I want to write a few entries just about the iPhone unix shell and SSH.
And a last reminder: My native language is german. So do not judge my english
