SSH to iPod or iPhone
Hey guys, this is Mac Heads 101, and today I'm going to show you how to SSH to your iPod or iPhone.
Um, basically what that means is it allows you to see all your files on your computer of your iPhone. You can click and drag stuff, and you can edit stuff that you can't edit somewhere else unless you have Mobile Finder.
So, to do this, first off, you have to jailbreak your iPod or iPhone. To do that, you can watch our tutorial on it. If you jailbroke it, it should automatically come with OpenSSH. If it doesn't, then go into Cydia right there and install OpenSSH.
Okay, once you did that, you're all set to go for SSH. So, what you should do—oh, and in settings on your iPhone, you have to make sure you have sleep set to never because otherwise it'll go into sleep while you're connected, and you'll lose connection. So just have anything on the screen; it's best to be on the home screen.
So, um, yeah, there we go! I'm on the home screen.
Okay, so now in Cyberduck—this is a great FTP and SSH application—you can get it for your Mac, and I'll have a link to download in the description of the video. So you're going to have to download that and make a new window if you haven't already done so. By the way, this is your transfers box in case you want to drag in or drag out files.
So you're going to go up, open connection. Since you're SSHing, you're going to say SFTP, which stands for SSH File Transfer Protocol. And you'll notice that that 21 automatically switches to a 22.
So then you're going to want your server to be your IP address. You're going to want to go to settings on your iPhone, and you're going to go to Wi-Fi. By the way, for this to work, you're going to have to be connected on the same network with your iPod or iPhone as well as your computer.
So now I—that's my network name, and I can just click on that little arrow, and it'll give me more information. So my iPhone’s IP address—it's not, it's remote IP—is 192.168.0.1.3, and it should always start with 192.168. Otherwise, you know that it's not the right kind of IP that you want.
So, your username is going to be root—you connect this as root—and your password, I already have it typed in because I made it remember. But your password, in case you don't know, is Alpine. That's the default iPhone password. But, um, you can change that if you have Terminal on your iPhone. Alpine is spelled A-L-P-I-N-E.
Now, you can just press continue or connect. Now you might get this funky message—just click allow. And right now, you see Library and Media, but here it says private, var, root. So what that means is you're not in your root folder.
Your root folder is the folder where everything is in. To get into your root folder, you just click this three times since you're three folders away from root.
So now once I'm in VAR twice, I'm in private, and this is where all your stuff is. So if I click on this, this is all the applications—the real applications—on your phone. Like, you see, field test. I made a video about that.
By the way, you're not going to want to drag things in there; I might have accidentally did that. Just, um, as long as you don't—if you see that your transfers box is empty, that's good. Because if you play with this, your phone might get messed up if you don't know what you're doing.
So, um, this is basically all the stuff, the cores and stuff of your phone that allow you to develop for your phone. Now, as you can see, you probably have a lot of applications on your home screen of your phone. I know that I downloaded a lot from the App Store, and I don't have them listed under applications.
It's because there are still applications I've ever—I just put it on sleep, so I might lose connection. But, uh, I’m just going to explain this one last thing to you before we go. Your applications, they have everything that we have for the applications. It's just that it's not in the same folder, so that's why you can exit out.
So, um, there we go! That's how you can use Cyberduck to SSH to your iPod. I hope this tutorial was helpful to you, and, uh, have a nice day. Goodbye!