Changes between Version 4 and Version 5 of ssl_host_key_changed


Ignore:
Timestamp:
May 14, 2008, 11:20:26 AM (12 years ago)
Author:
Jack Aponte
Comment:

Added information on how to fix the problem on a Mac.

Legend:

Unmodified
Added
Removed
Modified
  • ssl_host_key_changed

    v4 v5  
    2727
    2828=== Using Macintosh ===
     29Similarly to Linux, you will need to edit your ~/.ssh/known_hosts file. The error message will specify the line number of the "offending" key; for example,
     30
     31{{{
     32Offending key in /Users/Jack/.ssh/known_hosts:26
     33}}}
     34
     35Here, 26 is the line number of the "offending" key. Edit ~/.ssh/known_hosts and delete the line. To do this using the vim text editor, type the following at the prompt in Terminal:
     36
     37{{{
     38vi ~/.ssh/known_hosts
     39}}}
     40
     41When the file opens, type
     42
     43{{{
     44:26
     45}}}
     46
     47replacing "26" with your offending line number to jump to that line in the file. The name or IP address of the server you were trying to connect to should appear at the beginning of this line. Type
     48
     49{{{
     50dd
     51}}}
     52
     53to delete the line, then type
     54
     55{{{
     56:wq
     57}}}
     58
     59to save your changes and quit. Then, try to connect to the server again. You'll likely get a message saying that the authenticity of the host cannot be established; type "yes" to continue connecting and the new host key will be saved into your known_hosts file.
     60
    2961
    3062== What are host keys? ==