Smart Systems for Home

Plain how-to guides for smart home, security and home Wi-Fi

Connect iPhone/iPod Touch from PC via SSH

· 5 min read · Home Tech

In this article
  1. What You'll Need
  2. Step-by-Step
  3. Common Mistakes
  4. Tips
  5. Troubleshooting
  6. Frequently Asked Questions

To connect your iPhone or iPod Touch from a PC via SSH, you need to install an SSH server on the device (via a jailbreak tweak like OpenSSH) and then use an SSH client on your PC (like PuTTY) to connect over your local Wi-Fi. This lets you access the device's file system, transfer files, and run commands remotely. You must first jailbreak your iOS device — this is not possible on a non-jailbroken device.

What You'll Need

  • A jailbroken iPhone or iPod Touch (any iOS version that supports OpenSSH).
  • The OpenSSH tweak installed from Cydia (the default jailbreak app store).
  • A PC running Windows, macOS, or Linux with an SSH client (PuTTY for Windows, or the built-in terminal for macOS/Linux).
  • Both devices connected to the same Wi-Fi network.
  • The IP address of your iOS device (found in Settings > Wi-Fi > tap the connected network).
  • The root password for the device — default is alpine (change it after first login).

Step-by-Step

  1. Jailbreak your device — if not already done. The jailbreak method depends on your iOS version; follow the official guide for your device and iOS version. After jailbreaking, open Cydia.
  2. Install OpenSSH — In Cydia, tap the Search tab, type “OpenSSH”, and install the package by Saurik. It installs the SSH server and client on your iOS device.
  3. Find your device's IP address — On your iPhone/iPod, go to Settings > Wi-Fi, tap the blue “i” icon next to your connected network, and note the IP address (e.g., 192.168.1.10).
  4. Ensure both devices are on the same network — Your PC and iOS device must be on the same local Wi-Fi network. If you're using a corporate or guest network, they may be isolated; use a home router.
  5. Install an SSH client on your PC — For Windows, download and run PuTTY from the official site. For macOS or Linux, use the built-in Terminal (no install needed).
  6. Open the SSH client — On Windows, launch PuTTY. On macOS/Linux, open Terminal.
  7. Enter the connection details — In PuTTY, under “Host Name (or IP address)”, type your device's IP address. Set “Port” to 22 (default). Ensure “Connection type” is set to “SSH”. Click “Open”. On macOS/Linux Terminal, type ssh root@your-device-ip and press Enter.
  8. Accept the host key — The first time you connect, PuTTY will show a security alert about the host key. Click “Accept” or “Yes” to cache it. On Terminal, type yes when prompted.
  9. Log in — When prompted for username, type root. When prompted for password, type alpine (the default). You will not see characters as you type — that's normal.
  10. Change the default password — Immediately after first login, type passwd and press Enter. Enter a new strong password, then confirm it. This prevents unauthorized access.
  11. You are now connected — You'll see a command prompt like iPhone:~ root#. You can now run commands, browse files with ls, and transfer files using SCP or SFTP.

Common Mistakes

  • Forgetting to install OpenSSH — SSH won't work without it; Cydia is required.
  • Wrong IP address — The IP can change if the device reconnects to Wi-Fi. Always check it fresh.
  • Typing the password incorrectly — The default is lowercase alpine, not “Alpine” or “alp1ne”.
  • Not changing the default password — Leaving it as alpine is a security risk.
  • Using the wrong username — Use root for full access, or mobile for a limited user (less common).
  • Firewall blocking port 22 — Windows Firewall or antivirus may block outbound SSH. Temporarily disable or allow PuTTY.

Tips

  • Use a static IP on your iOS device (via DHCP reservation in your router) to avoid IP changes.
  • For file transfers, use an SFTP client like WinSCP (Windows) or FileZilla — they work over the same SSH connection.
  • If you're on a public Wi-Fi, avoid SSH entirely — it's unencrypted only if you don't use SSH (but SSH is encrypted, so it's fine, but the connection itself is still risky if the network is compromised).
  • Backup your device before jailbreaking and before making system changes via SSH.
  • Keep OpenSSH and your jailbreak tweaks updated via Cydia.

Troubleshooting

Connection refused or timeout — Check that OpenSSH is installed (look for the OpenSSH icon in Settings or run ps aux | grep sshd from a local terminal if you have one). Ensure both devices are on the same subnet (e.g., both 192.168.1.x). Try pinging the iOS device from your PC: open Command Prompt and type ping device-ip. If ping fails, the devices aren't communicating.

Authentication failed — Double-check the username (root) and password (alpine). If you changed it and forgot, you'll need to reset the password via a jailbreak tool like Cydia's “Reset Password” tweak, or restore the device and re-jailbreak.

Host key verification failed on macOS/Linux — If you've connected before and the device's IP changed, run ssh-keygen -R device-ip to remove the old key, then try again.

SSH works but commands are slow — This is normal on older devices. Use a wired connection via USB if you need speed (using tools like iFunBox or AFC2), but that's a different method.

After iOS update, SSH stops working — Jailbreaks are tied to iOS versions. Updating iOS removes the jailbreak and OpenSSH. Re-jailbreak and reinstall OpenSSH on the new version.

If you still can't connect — Restart both devices, reinstall OpenSSH from Cydia, and check your router's client list to confirm the IP. If you're using a VPN on either device, disconnect it.

Frequently Asked Questions

Is jailbreaking required for SSH?

Yes. Apple does not allow SSH server installation on non-jailbroken devices. The only way to run OpenSSH is after jailbreaking.

What is the default SSH username and password?

Username is root and password is alpine. You should change it immediately after first login.

Can I connect over the internet (not just Wi-Fi)?

Technically yes, but it's highly risky and requires port forwarding on your router. It's not recommended due to security risks; stick to local Wi-Fi.

How do I transfer files via SSH?

Use an SFTP client like WinSCP or FileZilla. Connect with the same IP, port 22, username, and password. You can drag and drop files.

What can I do with SSH?

You can browse the file system, edit configuration files, install tweaks manually, run commands, and transfer files. It's a powerful tool for advanced users.

Will SSH drain battery?

Only when actively connected. The SSH daemon runs in the background but uses minimal resources. You can disable it via Cydia when not needed.