1.First Download an SSH Client such as Cyberduck for OSX
2. Then locate your phones IP Address. Make sure your phone is on the same network as your computer you are SSHing from.
3. Open Cyberduck
4. Click Open Connection on Cyberduck
5. Click the drop down menu and select SFTP(SSH File Transfer Protocol) Make sure the port is 22
6. Use the IP Address we located on your iPhone and input it where it says Server.
7. The user name is “root” and the password is “alpine”. Both are without caps. Then hit Connect.
8. A screen will pop up asking “Do you want to allow the host access?” Select Allow for one time use or Always to connect everytime
9. Then you will need to hit the up button to go into the previous directory:/private/var/
10. From there you will select the directory /private/var/mobile
11. Then you will need to select Library puttin you in the directory /private/var/mobile/Library/
12. Next open the folder SMS located at /private/var/mobile/Library/SMS
13. Now select the files SMS.db and right click and select “Download to…”
14. Save the file to your desktop for easy access.
15. Now SSH into the freshly restored iPhone or the new iPhone using steps 2-6. But this time we are going to use a different user name. The User name is now “mobile” and the password is “alpine”, both without quotes
16. Select the Library folder putting you in directory /private/var/mobile/Library/
17. Then select SMS folder. Putting you at directory /private/var/mobile/Library/SMS/
18. Drag and drop the SMS.db file we saved to the desktop back into the SMS folder.
19. A window will pop up asking if you want to overwrite the existing file. Select Continue…
20. Make sure the permissions are set at 644
21. Respring your phone and the backup of your messages will appear when you open your Messages app.