ssh doesn't work

Discussion in 'iPhone Tips, Help and Troubleshooting' started by foob, Apr 6, 2009.

  1. foob macrumors 6502

    foob

    Joined:
    Feb 17, 2009
    #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?
     
  2. bytethese macrumors 68030

    bytethese

    Joined:
    Jun 20, 2007
    Location:
    Cranford, NJ
    #2
    Mobile Terminal won't show it running. So what are you using to connect to your iPhone? Terminal? Fugu?
     
  3. foob thread starter macrumors 6502

    foob

    Joined:
    Feb 17, 2009
    #3
    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...
     
  4. foob thread starter macrumors 6502

    foob

    Joined:
    Feb 17, 2009
    #4
    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.
     

Share This Page