<?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; SSH</title>
	<atom:link href="http://www.twiphone.com/tag/ssh/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 repair &#8220;Apple Logo Screen Of Death&#8221; (endless boot) without SSH access!</title>
		<link>http://www.twiphone.com/2008/12/01/how-to-repair-apple-logo-screen-of-death-endless-boot-without-ssh-access/</link>
		<comments>http://www.twiphone.com/2008/12/01/how-to-repair-apple-logo-screen-of-death-endless-boot-without-ssh-access/#comments</comments>
		<pubDate>Mon, 01 Dec 2008 09:17:50 +0000</pubDate>
		<dc:creator>TwiPhone</dc:creator>
				<category><![CDATA[Firmware 2.x]]></category>
		<category><![CDATA[iPhone]]></category>
		<category><![CDATA[iPhone 2G]]></category>
		<category><![CDATA[iPhone 3G]]></category>
		<category><![CDATA[Apple Logo]]></category>
		<category><![CDATA[Screen of death]]></category>
		<category><![CDATA[SSH]]></category>

		<guid isPermaLink="false">http://www.twiphone.com/?p=111</guid>
		<description><![CDATA[Well, I updated to 2.2 a few weeks ago and I had quite a lot of applications installed. And, as it happened quite a lot of times with 2.1 my SpringBoard preferences became corrupted. I wrote about reparinig the &#8220;Apple screen of death&#8221; in this post. Unfortunately I did not have SSH access to my [...]]]></description>
			<content:encoded><![CDATA[<p>Well, I updated to 2.2 a few weeks ago and I had quite a lot of applications installed. And, as it happened quite a lot of times with 2.1 my SpringBoard preferences became corrupted. </p>
<p>I wrote about reparinig the &#8220;Apple screen of death&#8221; in <a href="http://www.twiphone.com/2008/10/21/how-to-avoid-or-repair-apple-logo-screen-of-death-endless-iphone-boot/">this post</a>. Unfortunately I did not have SSH access to my phone this time since the upgrade from 2.1 to 2.2 rendered (Cydia OpenSSH server installation not working.</p>
<p>Still, I knew I had to prevent &#8220;mobilewatchdog.bundle&#8221; to load (read the <a href="http://www.twiphone.com/2008/10/21/how-to-avoid-or-repair-apple-logo-screen-of-death-endless-iphone-boot/">other post</a> to understand why.) So this time I just deleted the files by connecting via cable. By doing this I managed to get my SpringBoard preferences working again and I quickly installed OpenSSH to get regular Terminal access to the phone and restoring the &#8220;mobilewatchdog.bundle&#8221; again.</p>
<p>Here are the instructions:</p>
<p><span id="more-111"></span></p>
<p><em>WARNING: If this repair fails you will have a device that will reboot every 10 to 12 minutes &#8211; until you restore the full device from scratch. So try this repair as a last chance to recover from a &#8220;endless boot&#8221; device.</em></p>
<p>Read all steps before you begin. Step 1 and 2 (and step 3 and 4 later on) have to be completed in a few minutes since your phone will probably reboot after some time.</p>
<p>1.) First connect your phone to the Computer via cable and switch it on. Open up the free application <a href="http://www.digidna.net/diskaid/" target="_new">DiskAid</a> and make sure your phone is found. Then quickly change the small selector at the bottom left to &#8220;Root Folder&#8221;. Use &#8220;Copy to folder&#8221; to save the folder &#8220;mobilewatchdog.bundle&#8221; at &#8220;/System/Library/SystemConfiguration/&#8221; to you Computer. You will need this folder later again!</p>
<p>2.) Now delete the folder &#8220;mobilewatchdog.bundle&#8221; on the device by using the &#8220;Delete from Device&#8221; button.</p>

<a href='http://www.twiphone.com/2008/12/01/how-to-repair-apple-logo-screen-of-death-endless-boot-without-ssh-access/pic1/' title='pic1'><img width="150" height="150" src="http://www.twiphone.com/wp-content/uploads/pic1-150x150.png" class="attachment-thumbnail" alt="pic1" title="pic1" /></a>
<a href='http://www.twiphone.com/2008/12/01/how-to-repair-apple-logo-screen-of-death-endless-boot-without-ssh-access/pic3/' title='pic3'><img width="150" height="150" src="http://www.twiphone.com/wp-content/uploads/pic3-150x150.png" class="attachment-thumbnail" alt="pic3" title="pic3" /></a>
<a href='http://www.twiphone.com/2008/12/01/how-to-repair-apple-logo-screen-of-death-endless-boot-without-ssh-access/pic4/' title='pic4'><img width="150" height="150" src="http://www.twiphone.com/wp-content/uploads/pic4-150x150.png" class="attachment-thumbnail" alt="pic4" title="pic4" /></a>
<a href='http://www.twiphone.com/2008/12/01/how-to-repair-apple-logo-screen-of-death-endless-boot-without-ssh-access/pic5/' title='pic5'><img width="150" height="150" src="http://www.twiphone.com/wp-content/uploads/pic5-150x150.png" class="attachment-thumbnail" alt="pic5" title="pic5" /></a>

<p>Basically you delete the startup of a system daemon that will check every 2-3 minutes if Springboard could be loaded. If Springboard is not loaded &#8220;mobilewatchdog&#8221; would reboot your phone. Deleting this process will prevent the system from rebooting every 2-3 minutes. Still, every 10 minutes or so the system will still reboot by another process that cannot be deleted. But this 10 minutes should be enough to get your Springboard preferences restored <img src='http://www.twiphone.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  </p>
<p>3.) Reboot. Wait. If you get to your SpringBoard again (or to the PIN screen) everything went fine. If your phone reboots again after 10-12 minutes without showing anything except your Apple or Pineapple logo then this repair failed and you have to fully restore your phone. But this never happened to me so far.</p>
<p>4.) Hurry! On SpringBoard you should open up Cydia and install &#8220;OpenSSH&#8221; as quick as possible! The phone will certainly reboot within 10-12 minutes and you want the installation do be finished by then!</p>
<p><em>Extra: If you do not see your Cydia logo on SpringBoard but you are sure it is installed &#8211; then you quickly go to the &#8220;Settings&#8221; panel, choose &#8220;General&#8221;, &#8220;Restrictions&#8221; and enable them. Then disable them again. This should bring you all your applications back to the SpringBoard!</em></p>
<p>5.) Installation done? Check if you can login via SSH to your phone. </p>
<p>6.) Reboot again and copy  the &#8220;mobilewatchdog.bundle&#8221; files back to their location (/System/Library/SystemConfiguration/) by using DiskAid again or by using an SFTP client and the SSH login. </p>
<p>7.) Make sure you login via SSH and set the correct permissions of the files! If you do not do so the phone will still reboot every 10-12 minute since &#8220;mobilewatchdog.bundle&#8221; cannot be loaded at startup of the phone! enter these 3 commands when logged into your phone:</p>
<p><code> </code></p>
<p><code>chmod 755 /System/Library/SystemConfiguration/mobilewatchdog.bundle<br />
chmod 755 /System/Library/SystemConfiguration/mobilewatchdog.bundle/mobilewatchdog<br />
chmod 644 /System/Library/SystemConfiguration/mobilewatchdog.bundle/Info.plist</code></p>
<p>If the files were put on the right location there should be no error message.</p>
<p>8.) Reboot again.</p>
<p>Thats it!</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/12/01/how-to-repair-apple-logo-screen-of-death-endless-boot-without-ssh-access/feed/</wfw:commentRss>
		<slash:comments>8</slash:comments>
		</item>
		<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>
	</channel>
</rss>
