<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>TwiPhone.com &#187; Firmware 1.x</title>
	<atom:link href="http://www.twiphone.com/category/iphone/firmware/firmware-1x/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.twiphone.com</link>
	<description>Tweaks for the iPhone</description>
	<lastBuildDate>Thu, 06 May 2010 13:58:12 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=abc</generator>
		<item>
		<title>How to backup your iPhone regularly via SSH using rsync (Updated)</title>
		<link>http://www.twiphone.com/2008/08/08/how-to-backup-your-iphone-regularly-via-ssh-using-rsync/</link>
		<comments>http://www.twiphone.com/2008/08/08/how-to-backup-your-iphone-regularly-via-ssh-using-rsync/#comments</comments>
		<pubDate>Fri, 08 Aug 2008 12:33:58 +0000</pubDate>
		<dc:creator>TwiPhone</dc:creator>
				<category><![CDATA[Firmware]]></category>
		<category><![CDATA[Firmware 1.x]]></category>
		<category><![CDATA[Firmware 2.x]]></category>
		<category><![CDATA[iPhone]]></category>
		<category><![CDATA[iPhone 2G]]></category>
		<category><![CDATA[iPhone 3G]]></category>
		<category><![CDATA[backup]]></category>
		<category><![CDATA[rsync]]></category>
		<category><![CDATA[SSH]]></category>

		<guid isPermaLink="false">http://www.twiphone.com/?p=69</guid>
		<description><![CDATA[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. [...]]]></description>
			<content:encoded><![CDATA[<p>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?</p>
<p>iTunes will <strong>not</strong> 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.)</p>
<p>So my advice is to copy all files from your iPhone to your computer. Its quite simple!</p>
<p><span id="more-69"></span></p>
<p>You need a backup directory on your computer, i used &#8220;<em>iPhone-Backup</em>&#8221; in my home directory for this example.</p>
<p>(1) Make sure your computer and your iPhone are connected to the same WiFi network and you know the bonjour name or the IP-address of your iPhone. </p>
<p>(2) Make sure the iPhone <strong>auto-lock</strong> is set to off: Go to the iPhone &#8220;Settings&#8221;: Then to &#8220;General&#8221;, then &#8220;Auto-Lock&#8221; and choose &#8220;Never&#8221;. You can change this after backup but now you want to make sure the WiFi connection stays on while the backup runs.</p>
<p>(3) Open the Terminal.app on your computer</p>
<p>(4) Make sure you got the backup directory in your home folder already set up. If not, just type: <code>mkdir ~/iPhone-Backup</code></p>
<p>(5) For the backup (and for all subsequent backups later) type in: <code>rsync --exclude private/var/mobile/Media/iTunes_Control/ -av root@(your-iPhone-IP):/ ~/iPhone-Backup/ --delete</code></p>
<p>So if your iPhone address is 10.0.1.3 the command would look like this: <code>rsync --exclude private/var/mobile/Media/iTunes_Control/ -av root@10.0.1.3:/ ~/iPhone-Backup/ --delete</code></p>
<p>Now you got to wait a little. An iPhone running on firmware 2.x will probably take a few minutes for the first backup. Without applications the copy folder should be about 600 MB. </p>
<p>What does the command actually do?</p>
<p>(a) <code>rsync</code> will copy files via SSH from the SSH-server account root folder (<code>root@10.0.1.3:/</code>) to the local folder (<code>~/iPhone-Backup/</code>) that are not already copied. So the first backup will take quite a long time, all next backups will only copy new or changed files.</p>
<p>(b) the copy will exclude all files in your iPhones &#8220;iTunes Media&#8221; folder. (actually all files starting with <code>private/var/mobile/Media/iTunes_Control/</code>) This is neccessary since all your synced music and fotos from iTunes are stored here. Otherwise you would get a backup of all this data already stored in your iTunes!</p>
<p>(c) The &#8220;<code>--delete</code>&#8221; tag at the end makes sure all files already backup up and not on the iPhone anymore will be deleted with the next backup. So if you delete e.g. some camera pictures on your iPhone, the backup pictures on your computer will be deleted as well with the next backup.</p>
<p>(d) The &#8220;<code>-av</code>&#8221; tag specifies the backup mode: Archiving (a) and verbose (v). In verbose mode you get a long list of files that were backup up. There will be some files that cannot be backed up: Some of them are only links to devices on the phone. And some are part of running processes on the iPhone, e.g. your temporary mail file. Do not worry too much about them. You could change &#8220;<code>-av</code>&#8221; to &#8220;<code>-a</code>&#8221; and avoid the long list at all after your backup is set up correctly.</p>
<p><strong>A little correction:</strong></p>
<p>The Photo database <strong>will</strong> be copied: It is in <code>~/Media/Photos/</code>  So the correct syntax for <strong>not</strong> copying the photo database would be: <code>rsync --exclude private/var/mobile/Media/Photos/ --exclude private/var/mobile/Media/iTunes_Control/ -av root@10.0.1.3:/ ~/iPhone-Backup/ --delete</code></p>
<p>Hint: You can exclude any other folders &#8211; as long as you add an <code>--exclude</code> before any of them. Listing them after the <code>--exclude</code> command (space or comma separated) will not work!</p>
<p>
    
    
<script type="text/javascript"><!--
google_ad_client = "pub-1698934201924818";
/* iPhone-468x60 */
google_ad_slot = "2448863691";
google_ad_width = 468;
google_ad_height = 60;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>




</p>
]]></content:encoded>
			<wfw:commentRss>http://www.twiphone.com/2008/08/08/how-to-backup-your-iphone-regularly-via-ssh-using-rsync/feed/</wfw:commentRss>
		<slash:comments>24</slash:comments>
		</item>
		<item>
		<title>Error login into your iPhone via SSH: Possible DNS Spoofing detected</title>
		<link>http://www.twiphone.com/2008/08/08/error-login-into-your-iphone-via-ssh-possible-dns-spoofing-detected/</link>
		<comments>http://www.twiphone.com/2008/08/08/error-login-into-your-iphone-via-ssh-possible-dns-spoofing-detected/#comments</comments>
		<pubDate>Fri, 08 Aug 2008 12:02:37 +0000</pubDate>
		<dc:creator>TwiPhone</dc:creator>
				<category><![CDATA[Firmware]]></category>
		<category><![CDATA[Firmware 1.x]]></category>
		<category><![CDATA[Firmware 2.x]]></category>
		<category><![CDATA[iPhone]]></category>
		<category><![CDATA[iPhone 2G]]></category>
		<category><![CDATA[iPhone 3G]]></category>
		<category><![CDATA[DNS]]></category>
		<category><![CDATA[spoof]]></category>
		<category><![CDATA[SSH]]></category>

		<guid isPermaLink="false">http://www.twiphone.com/?p=45</guid>
		<description><![CDATA[You just tried to login into your iPhone and your terminal gave you a massive warning? Something like: @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @ WARNING: POSSIBLE DNS SPOOFING DETECTED! @ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ The RSA host key for xxx.local has changed, and the key for the according IP address xxxx is unchanged. This could either mean that DNS SPOOFING is happening [...]]]></description>
			<content:encoded><![CDATA[<p>You just tried to login into your iPhone and your terminal gave you a massive warning?</p>
<p>Something like:</p>
<p><code>@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@<br />
@       WARNING: POSSIBLE DNS SPOOFING DETECTED!          @<br />
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@</code></p>
<p><code> </code></p>
<p><span id="more-45"></span></p>
<p><code>The RSA host key for xxx.local has changed,<br />
and the key for the according IP address xxxx<br />
is unchanged. This could either mean that<br />
DNS SPOOFING is happening or the IP address for the host<br />
and its host key have changed at the same time.<br />
Offending key for IP in /Users/admin/.ssh/known_hosts:x<br />
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@<br />
@    WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED!     @<br />
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@<br />
IT IS POSSIBLE THAT SOMEONE IS DOING SOMETHING NASTY!<br />
Someone could be eavesdropping on you right now (man-in-the-middle attack)!<br />
It is also possible that the RSA host key has just been changed.<br />
The fingerprint for the RSA key sent by the remote host is<br />
xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx.<br />
Please contact your system administrator.<br />
Add correct host key in /Users/admin/.ssh/known_hosts to get rid of this message.<br />
Offending key in /Users/admin/.ssh/known_hosts:x<br />
RSA host key for xxx.local has changed and you have requested strict checking.<br />
Host key verification failed.</code></p>
<p>You probably just tried to login to your iPhone using an (DHCP) WiFi IP-address that was in use by some other iPhone before. Or you try to log into your iPhone using the iPhone name (e.g. iPhone.local) instead of an IP-address.</p>
<p>If you are sure there is no other party on your WiFi network and no DNS spoofing possible the solution is quite easy: Just delete the <code>known_hosts</code> file on your host computer by typing in: <code>rm ~/.ssh/known_hosts</code></p>
<p>
    
    
<script type="text/javascript"><!--
google_ad_client = "pub-1698934201924818";
/* iPhone-468x60 */
google_ad_slot = "2448863691";
google_ad_width = 468;
google_ad_height = 60;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>




</p>
]]></content:encoded>
			<wfw:commentRss>http://www.twiphone.com/2008/08/08/error-login-into-your-iphone-via-ssh-possible-dns-spoofing-detected/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Use your iPhone name on your network. Forget about IP numbers</title>
		<link>http://www.twiphone.com/2008/08/07/give-your-iphone-a-name-on-your-network-forget-about-ip-numbers/</link>
		<comments>http://www.twiphone.com/2008/08/07/give-your-iphone-a-name-on-your-network-forget-about-ip-numbers/#comments</comments>
		<pubDate>Thu, 07 Aug 2008 14:29:51 +0000</pubDate>
		<dc:creator>TwiPhone</dc:creator>
				<category><![CDATA[Firmware]]></category>
		<category><![CDATA[Firmware 1.x]]></category>
		<category><![CDATA[Firmware 2.x]]></category>
		<category><![CDATA[iPhone]]></category>
		<category><![CDATA[iPhone 2G]]></category>
		<category><![CDATA[iPhone 3G]]></category>
		<category><![CDATA[Bonjour]]></category>
		<category><![CDATA[IP-address]]></category>
		<category><![CDATA[SSH]]></category>

		<guid isPermaLink="false">http://www.twiphone.com/?p=47</guid>
		<description><![CDATA[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 [...]]]></description>
			<content:encoded><![CDATA[<p>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?</p>
<p>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 <strong>.local</strong> to the name.</p>
<p><span id="more-47"></span></p>
<p>So if your iPhone name on iTunes is <strong>twiPhone</strong>, you can always reach your iPhone by using <strong>twiPhone.local</strong> instead of a cryptic IP address. This should help you al ot if you are using more than one WiFi network with your iPhone.</p>
<p>Remember: <em>The name is case-sensitive! So twiPhone.local would work, twiphone.local not!</em></p>
<p>The same name will be used for Bonjour as well. Check &#8220;<a href="http://www.tildesoft.com/Programs.html#BonjourBrowser" target="_blank">Bonjour Browser</a>&#8221; and see you iPhone registered in your network with SSH and SFTP <img src='http://www.twiphone.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>So to connect via ssh use: <code>ssh -l root (your-iPhone-name-goes-here).local</code></p>
<p>
    
    
<script type="text/javascript"><!--
google_ad_client = "pub-1698934201924818";
/* iPhone-468x60 */
google_ad_slot = "2448863691";
google_ad_width = 468;
google_ad_height = 60;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>




</p>
]]></content:encoded>
			<wfw:commentRss>http://www.twiphone.com/2008/08/07/give-your-iphone-a-name-on-your-network-forget-about-ip-numbers/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>How to login into your iPhone via SSH with no password (but with key authentification)</title>
		<link>http://www.twiphone.com/2008/08/07/how-to-login-into-your-iphone-via-ssh-with-no-password-but-with-key-authentification/</link>
		<comments>http://www.twiphone.com/2008/08/07/how-to-login-into-your-iphone-via-ssh-with-no-password-but-with-key-authentification/#comments</comments>
		<pubDate>Thu, 07 Aug 2008 13:33:29 +0000</pubDate>
		<dc:creator>TwiPhone</dc:creator>
				<category><![CDATA[Firmware 1.x]]></category>
		<category><![CDATA[Firmware 2.x]]></category>
		<category><![CDATA[iPhone]]></category>
		<category><![CDATA[iPhone 2G]]></category>
		<category><![CDATA[iPhone 3G]]></category>

		<guid isPermaLink="false">http://www.twiphone.com/?p=35</guid>
		<description><![CDATA[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 [...]]]></description>
			<content:encoded><![CDATA[<p>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 <code>rsync</code> (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.</p>
<p>7 easy steps to create your automatic login:</p>
<p><span id="more-35"></span></p>
<ul>
<li>(1) Open Terminal.app on your computer</li>
<li>(2) Make sure you got a RSA key pair on your computer. If you use SSH to login into other computers, servers or iPhones this could already be the case, so check: <code>ls .ssh</code> (or <code>ls ~/.ssh</code>). If you see two files <code>id_rsa</code> and <code>id_rsa.pub</code> this is already the case. If not, create your own key-files for the computer by simply typing in: <code>ssh-keygen -t rsa <span style="font-family: 'Lucida Grande';">Do NOT repeat this step unless you want to create new key-files. Then you should repeat all of the steps, the old key-files will be overwritten.</span></code></li>
<li>(3) Log into your iPhone via WiFi by using:<br />
<code>ssh -l root (IP-address of iPhone)</code></li>
<li>(4) Create the .ssh directory on your iPhone: <code>mkdir ~/.ssh</code></li>
<li>(5) This step is crucial, use this syntax only if your iPhone runs on firmware 2.x! Change the iPhone SSH server to accept key-files by typing in this: <code>echo AuthorizedKeysFile .ssh/authorized_keys &gt;&gt; /private/etc/ssh/sshd_config</code></li>
<li>(6) Exit the iPhone SSH shell by using: <code>exit</code></li>
<li>(7) Now on your Mac copy your public key-file to the iPhone by using this syntax: <code>scp ~/.ssh/id_rsa.pub root@10.0.1.3:.ssh/authorized_keys</code></li>
</ul>
<p>Thats it! Try now to re-connect to your iPohne by using: <code>ssh -l root (IP-address of iPhone)</code> There should be no password prompt anymore. Your computer is authorized by checking the public key file on the iPhone (<code>id_rsa.pub</code>)  against your private key-file (<code>id_rsa</code>).</p>
<p>Hint: If you are on firmware 1.x you should change step (5) to this: <code>echo AuthorizedKeysFile .ssh/authorized_keys &gt;&gt; /etc/ssh/sshd_config</code></p>
<p>
    
    
<script type="text/javascript"><!--
google_ad_client = "pub-1698934201924818";
/* iPhone-468x60 */
google_ad_slot = "2448863691";
google_ad_width = 468;
google_ad_height = 60;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>




</p>
]]></content:encoded>
			<wfw:commentRss>http://www.twiphone.com/2008/08/07/how-to-login-into-your-iphone-via-ssh-with-no-password-but-with-key-authentification/feed/</wfw:commentRss>
		<slash:comments>8</slash:comments>
		</item>
	</channel>
</rss>
