Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

Sseguin

macrumors regular
Original poster
Dec 6, 2009
140
3
So I downloaded mobile terminal and changed the password. But, evertime I ssh in my phone I have use the alpine password? How come it doesn't change it? Thx.
 
So I downloaded mobile terminal and changed the password. But, evertime I ssh in my phone I have use the alpine password? How come it doesn't change it? Thx.

Probably because you changed the password for mobile and not for root. MobileTerminal defaults to user logged in, mobile. When you are using SSH to transfer files, etc you need to use root. You SSH to your iPhone with a terminal from your PC using root/alpine, then type passwd and change the password. Then type passwd mobile and change mobile's password. :)
 
Probably because you changed the password for mobile and not for root. MobileTerminal defaults to user logged in, mobile. When you are using SSH to transfer files, etc you need to use root. You SSH to your iPhone with a terminal from your PC using root/alpine, then type passwd and change the password. Then type passwd mobile and change mobile's password. :)

I am using WinSCP to SSH into my phone. How do I change my root password with WinSCP?

Or how do I change my root password using mobileterminal with my phone?
 
So I downloaded mobile terminal and changed the password. But, evertime I ssh in my phone I have use the alpine password? How come it doesn't change it? Thx.

There are actually two accounts: "root" and "mobile". You might be logging in with one and forgot to change the default "alpine" password on the other. Be sure to change them both.

There are many guides on how to do this if you google "change iphone ssh password". Here's one link that looks good:

http://www.redmondpie.com/how-to-secure-your-jailbroken-iphone-from-ssh-hack-9140084/

You also might want to think about using a "AllowUsers" command in the /private/etc/ssh/sshd_config. I've used it to restricted my iPhone to certain stations on my local network making remote hacking very unlikely.
 
I am using WinSCP to SSH into my phone. How do I change my root password with WinSCP?

Or how do I change my root password using mobileterminal with my phone?

I'm not familiar with WinSCP as I am a Mac user but if you want to use terminal, you need to type: login. Then type root, hit enter and type: alpine and hit enter. Then type passwd to change the password. :)
 
I'm not familiar with WinSCP as I am a Mac user but if you want to use terminal, you need to type: login. Then type root, hit enter and type: alpine and hit enter. Then type passwd to change the password. :)

This procedure worked great! Thanks.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.