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

foob

macrumors 6502
Original poster
Feb 17, 2009
306
1
I've had my phone (3G jailbroken 2.2.1) for two months and SSH has never worked. There was an OpenSSH upgrade on Cydia a few minutes ago, and I was hoping that would fix it, but it didn't.

Opening MobileTerminal and using the ps command shows that it isn't running, although ssh is turned on in BossPrefs. I've tried to start it manually with /usr/sbin/sshd but it gives "Could not load host key" errors and exits. I've tried ssh-keygen but that doesn't change anything. I've tried this all as root and mobile and I've uninstalled and reinstalled ssh a couple of times.

Anyone have any ideas other than reinstalling the firmware and re-jailbreaking?
 
I've had my phone (3G jailbroken 2.2.1) for two months and SSH has never worked. There was an OpenSSH upgrade on Cydia a few minutes ago, and I was hoping that would fix it, but it didn't.

Opening MobileTerminal and using the ps command shows that it isn't running, although ssh is turned on in BossPrefs. I've tried to start it manually with /usr/sbin/sshd but it gives "Could not load host key" errors and exits. I've tried ssh-keygen but that doesn't change anything. I've tried this all as root and mobile and I've uninstalled and reinstalled ssh a couple of times.

Anyone have any ideas other than reinstalling the firmware and re-jailbreaking?

Mobile Terminal won't show it running. So what are you using to connect to your iPhone? Terminal? Fugu?
 
I'm using a terminal in linux.

I assumed sshd would show up, but you're right, I am able to ssh from my phone as mobile to my phone as root, so I guess ssh itself is working.

I booted to windows and tried the windows program everyone talks about (winscp?) and it just timed out. I can't ping from the desktop to phone or vice versa. I can't see any network issue but I apparently have one...
 
Well, I tried everything I could possibly think of and nothing worked. So I tried resetting the router to the factory settings. Now it works like a charm.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.