How to Delete an iPhone Passcode Through SSH

Written by alexander poirier
  • Share
  • Tweet
  • Share
  • Pin
  • Email
How to Delete an iPhone Passcode Through SSH
Jailbreaking an iPhone, while completely legal, voids your warranty with Apple. (Daniel Barry/Getty Images News/Getty Images)

SSH is a file-system explorer application the allows you to view the file system on a jailbroken iPhone from a computer on the same Wi-Fi network as the device. Almost every aspect of the device can be manipulated from within the device's file system, including the passcode. If you need to remove the lock-screen passcode on your iPhone through the SSH file system explorer, you can do so in a few simple steps.

Skill level:

Other People Are Reading

Things you need

  • iPhone with SSH installed
  • SSH computer client

Show MoreHide


  1. 1

    Tap the "Settings" icon on the iPhone's home screen, followed by the "Wi-Fi" option. Tap the arrow to the right of the Wi-Fi connection your phone is connected to and write down the IP address listed beneath the "IP Address" heading.

  2. 2

    Double-click the SSH client icon on the computer. Type the IP address you wrote down in Step 1 in the space labelled "Server." Type "root" in the space labelled "Username" and "alpine" in the space labelled "Password." Click the "Connect" button to connect the SSH server.

  3. 3

    Open the "var" folder, followed by the "mobile" folder. Open the "Library" folder, followed by the "Preferences" folder. Delete the file named "" This file contains the setting that tells your device the passcode is activated.

  4. 4

    Open the "var" folder, followed by the "Keychains" folder. Delete the file titled "keychain-2.db." This file contains the passcode itself.

  5. 5

    Click the "Disconnect" button to disconnect the iPhone from the SSH server. Press and hold the iPhone's "Home" button and "Sleep/Wake" button to reboot the device. Once the iPhone reboots, you can access the device without entering the passcode.

Tips and warnings

  • Manipulating your iPhone's file system can damage your device. Edit your device's file system files at your own risk.
  • Deleting the "keychain-2.db" file also deletes and saved passwords associated with your iPhone.

Don't Miss

  • All types
  • Articles
  • Slideshows
  • Videos
  • Most relevant
  • Most popular
  • Most recent

No articles available

No slideshows available

No videos available

By using the site, you consent to the use of cookies. For more information, please see our Cookie policy.