MariusM95 / iphodroi

Automatically exported from code.google.com/p/iphodroid
0 stars 0 forks source link

SSH known_hosts being deleted #28

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Running iphodroid

What is the expected output? What do you see instead?
Android installed without known_hosts being deleted.

What version of the product are you using? On what operating system?
I have tried R11, and R10.

Please provide any additional information below.
It would be better to either copy/move before installation, then restore.
Or parse the file and delete the line for the IP/host of the iPhone.

Original issue reported on code.google.com by classic...@gmail.com on 28 Jun 2010 at 7:18

GoogleCodeExporter commented 9 years ago
i've got the same problem.

Original comment by v.berru...@gmail.com on 19 Jul 2010 at 3:36

GoogleCodeExporter commented 9 years ago
I'm guessing ~/.ssh/known_hosts is deleted so the script can always type "yes" 
to accept the key in step 1

A better option would be to just remove the key for the iPhone.  "ssh-keygen 
-R" backs up the file and remove the requested key.  If the key doesn't exists 
for that host you do not get an error.

  $ ssh-keygen -R 192.168.1.123
  /Users/foo/.ssh/known_hosts updated. 
  Original contents retained as /Users/foo/.ssh/known_hosts.old

Original comment by don.cole...@gmail.com on 28 Jul 2010 at 11:35