SSH Problem

Discussion in 'Jailbreaks and iOS Hacks' started by MacOSXAddict, Jan 1, 2008.

  1. MacOSXAddict macrumors member

    Jan 15, 2007
    I am trying to connect to my iPhone via Fugu. My iPhone is Jailbroken and has OpenSSH installed. When I try to connect to my iPhone:

    IP: IP of iPhone
    Username: root
    Port: 22
    Directory: /

    I get this message: "Warning: Remote Host Identification Has Changed!"

    After that message, it disconnects the iPhone and I can not do anything to connect.

    Any thoughts to correct this?
  2. brando88 macrumors 6502

    Nov 13, 2007
    If you are using FUGU, don't put anything in the Directory path, and delete the known hosts file. It should fix your problem.
  3. WMuntean macrumors regular

    Aug 23, 2007
    I'm getting a weird Fugu error saying that I can't connect using port 22.

    Anyone else have this problem?
  4. swoosh0217 macrumors 6502a


    Nov 20, 2007
    Use WinSCP. It's better connecting and you shouldnt have this problem. Also, make sure to download "Services" in your installer to manually turn off/on your SSH.
  5. wrboyce macrumors 6502

    Oct 30, 2007
    From reading your problem, I would advise you to ignore everyone else (no offence meant).

    The fact that you're receiving a complaint that the remote host's identification has changed shows us that you are successfully opening a connection to your iPhone. My guess is that you have reinstalled openssh recently, or re-flashed your iphone, or something that has caused the host rsa keys on your iPhone to change (if you haven't then someone is trying to man in the middle attack you, but I doubt that's the case).

    All you need to do is delete the remote host's old ID from your ~/.ssh/known_hosts ("rm -rf ~/.ssh/known_hosts" will suffice, but it's a bit sledge-hammer)

    I've never heard of Fugu so can't help with the specifics of that application, but the same rule applies. It is trying to verify the identity of your iPhone and failing.. Delete the old identity and you'll be away.

Share This Page