Results 1 to 3 of 3
Discuss [SSH][Solved] How to edit the known_hosts ? at the General - Hackint0sh.org; I've installed ssh on my jailbroken iPhone 1.1.2 and Macfuse and sshfs on my Macbook, ...
  1. #1
    Rookie Array kuebler's Avatar

    Join Date
    Dec 2007
    Location
    Luzern/Switzerland
    Posts
    14
    Post Thanks / Like
    Downloads
    0
    Uploads
    0
    Rep Power
    0

    Default [SSH][Solved] How to edit the known_hosts ?

    I've installed ssh on my jailbroken iPhone 1.1.2 and Macfuse and sshfs on my Macbook, but I can't access the iphone from the Mac finder. When I start sshfs and enter the iPhones IP and "root", then just nothing seems to happen.

    I can access the iPhone from the Macbook via the terminal with the command "ssh root@192.168.000.006". Later I also tried it with "ssh root@192.168.0.6", and I suppose by doing so I confused something and therefore I can not access the iPhone from sshfs. May that be possible? Here is some protocol which I got from ssh, which unfortunately I don' really understand:

    installations-macbook:~ Meins$ ssh root@192.168.0.6
    @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @@@@@@@@@
    @ 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
    06:57:5a:50:fa:42:d8:fb:d4:4f:a9:6d:b8:47:9d:d1.
    Please contact your system administrator.
    Add correct host key in /Users/Meins/.ssh/known_hosts to get rid of this message.
    Offending key in /Users/Meins/.ssh/known_hosts:2
    RSA host key for 192.168.0.6 has changed and you have requested strict checking.
    Host key verification failed.
    installations-macbook:~ Meins$ ssh root@192.168.000.006
    Warning: the RSA host key for '192.168.000.006' differs from the key for the IP address '192.168.0.6'
    Offending key for IP in /Users/Meins/.ssh/known_hosts:2
    Matching host key in /Users/Meins/.ssh/known_hosts:4
    Are you sure you want to continue connecting (yes/no)? yes
    root@192.168.000.006's password:
    Last login: Fri Jan 11 10:54:14 2008 from 192.168.0.2
    #

    Can anybody tell me what I have to do to remedy the mess and for connecting to my iPhone form sshfs? On my Mac I cannot find a directory "/Users/Meins/.ssh/". May it be hidden? And if sshfs would work correctly, how then should I see the iPhone in the finder?

    I would be grateful for any hint, and please, please try to use layman's terms
    Last edited by kuebler; 01-11-2008 at 11:26 AM. Reason: clarifications
    Falk Kuebler



  2. #2
    Senior Professional Array

    Join Date
    Aug 2007
    Posts
    231
    Post Thanks / Like
    Downloads
    0
    Uploads
    0
    Rep Power
    19

    Default

    Nothing to worry about unless this happens everytime you connect. .ssh is a hidden directory (all . files/directories in unix are hidden, you can see them with ls -a ) . You can edit the file (known_hosts) and remove the second line if you wish .
    Last edited by adyh; 01-11-2008 at 11:44 AM.

  3. #3
    Rookie Array kuebler's Avatar

    Join Date
    Dec 2007
    Location
    Luzern/Switzerland
    Posts
    14
    Post Thanks / Like
    Downloads
    0
    Uploads
    0
    Rep Power
    0

    Default

    Quote Originally Posted by adyh View Post
    You can edit the file (known_hosts) and remove the second line if you wish .
    Excellent! When I draw the textedit window veeeeeeeeerrrrry long, then I could identify the line and delete it. And afterwards I could also connect the iPhone via sshfs to my desktop.

    Thanks for the hint.
    Last edited by kuebler; 01-11-2008 at 04:13 PM.
    Falk Kuebler

 

 

Similar Threads

  1. Edit sms?
    By ifail in forum General
    Replies: 0
    Last Post: 06-09-2011, 03:17 AM
  2. How to edit sms.db
    By dongta in forum Tools
    Replies: 7
    Last Post: 09-17-2010, 02:30 PM
  3. How to edit sms.db of 1.1.4?
    By Sebastian-Bonn in forum Tools
    Replies: 4
    Last Post: 08-12-2008, 11:53 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Powered by vBulletin®
Copyright © 2014 vBulletin Solutions, Inc. All rights reserved.
Search Engine Friendly URLs by vBSEO
(c) 2006-2012 Hackint0sh.org
All times are GMT +2. The time now is 09:55 AM.
twitter, follow us!