Results 1 to 9 of 9

Your favorite Apple, iPhone, iPad, iOS, Jailbreak, and Cydia site.


Thread: Trying to change the ssh password

  1. #1
    Green Apple
    Join Date
    Jul 2007
    Location
    Yigo, Guam
    Posts
    40
    Thanks
    10
    Thanked 1 Time in 1 Post
    Default Trying to change the ssh password
    I recently had to restore my phone after upgrading to 1.1.2. I originally upgraded from 1.1.1 where I had already changed my password from the default and here's what I'm getting in terminal when I try it:


    Shawns-Computer:~ tolar_5$ ssh [email protected]
    @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @@@@@@@@@
    @ WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED! @
    @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @@@@@@@@@
    IT IS POSSIBLE THAT SOMEONE IS DOING SOMETHING NASTY!
    Someone could be eavesdropping on you right now (man-in-the-middle attack)!
    It is also possible that the RSA host key has just been changed.
    The fingerprint for the RSA key sent by the remote host is
    e1:3f:7d:71:5c:f3:a2:f9:d5:46:d6:cc:c5:d1:c3:3b.
    Please contact your system administrator.
    Add correct host key in /Users/tolar_5/.ssh/known_hosts to get rid of this message.
    Offending key in /Users/tolar_5/.ssh/known_hosts:1
    RSA host key for 192.168.0.3 has changed and you have requested strict checking.
    Host key verification failed.
    Shawns-Computer:~ tolar_5$


    Sorry if this is a pretty simple fix but I've only had my mac for about a week now.

    Thanks for the help guys!

  2. #2
    Owner / Founder - ModMyi
    aka cash7c3
    Cody Overcash's Avatar
    Join Date
    May 2007
    Location
    Denver, CO
    Posts
    11,920
    Thanks
    339
    Thanked 15,254 Times in 649 Posts

    in terminal enter

    rm -f ~/.ssh/known_hosts

    then try to shh into your phone

  3. The Following 2 Users Say Thank You to Cody Overcash For This Useful Post:

    imemikey (2007-12-03), Ironhorz (2007-11-22)

  4. #3
    Green Apple
    Join Date
    Jul 2007
    Location
    Yigo, Guam
    Posts
    40
    Thanks
    10
    Thanked 1 Time in 1 Post
    Quote Originally Posted by cash7c3 View Post
    in terminal enter

    rm -f ~/.ssh/known_hosts

    then try to shh into your phone
    Thanks for your help, it worked!

  5. #4
    Amazing! That worked for me as well. I couldn't understand why I couldn't SSH in anymore after the above events.

    Cash - what exactly is that terminal command doing?

    Thanks!

  6. #5
    Owner / Founder - ModMyi
    aka cash7c3
    Cody Overcash's Avatar
    Join Date
    May 2007
    Location
    Denver, CO
    Posts
    11,920
    Thanks
    339
    Thanked 15,254 Times in 649 Posts

    clearing out all ssh know host keys.

  7. #6
    Cash,

    I was having the same problem. I removed the 'known_hosts' file but I still cannot connect to my iPhone using Fugu or Fetch. Still getting the same error; 'Remote Host Identification' Has Changed'.

    I restarted the phone, try removing the file a second time, nothing seems to help.

    Thoughts?

  8. #7
    because you need to use terminal the first time to generate a new key.

    just ssh -l [email protected]'s IP adress, and you'll see the RSA warning window. Type yes, wait for a bit, then once you're logged on, you can use fugu.. whatever that is... I presume an FTP client (no, I'm not motivated to go to fugu.com).
    Search NAZI

  9. #8
    Thanks for the quick reply.

    Entering the command as you supplied it does not work. Terminal just displays the proper way to use the ssh command. ;-}

    If I enter 'ssh iphones_ip_address -l root' then I get the ssh request to generate a new key. I enter 'yes' and ssh is happy. Unfortunately I still cannot connect from either my Mac's terminal or Fetch or Fugu.

    Any other thoughts?

    -------------------

    Fixed it by again deleting the 'known_hosts' file from my Mac and then regenerating the key.

    Thanks you both. I appreciate your help.
    Last edited by The Inventor; 2007-12-13 at 07:55 PM.

  10. #9
    Hmmm.. I don't know what version of Terminal you're using. Are you using Bash?

    ssh -l [email protected] address has wored for me for.... 12? 15? years now... Dunno.
    Search NAZI

Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •