You are not logged in.

#1 2006-05-25 09:37:57

Komodo
Member
From: Oxford, UK
Registered: 2005-11-03
Posts: 674

*ahem* ext3 file recovery possible???

Shit, I just did something really retarded...

I set up an RSA key on a remote server via ssh for a friend, emailed them the PUBLIC key, not the private one (oops!), then deleted the private key from my hard disk!

Is there any way to recover it?

Edit: I just read something about grep-ing the device:

dave@kaminoitte:~$ sudo grep id_rsa /dev/hdd6
Binary file /dev/hdd6 matches

...but what the hell do i do with that?


.oO Komodo Dave Oo.

Offline

#2 2006-05-26 12:29:49

phildg
Member
Registered: 2006-03-10
Posts: 146

Re: *ahem* ext3 file recovery possible???

I'm pretty sure you need to grep for a string that is contained within the file, rather than the filename. I think in your case grepping for the file is no good because your unlikely to know a string of characters from the key

Theres some interesting info in this thread from LinuxQuestions. In particular: post 11

Offline

#3 2006-05-27 05:30:48

Komodo
Member
From: Oxford, UK
Registered: 2005-11-03
Posts: 674

Re: *ahem* ext3 file recovery possible???

phildg wrote:

I'm pretty sure you need to grep for a string that is contained within the file, rather than the filename. I think in your case grepping for the file is no good because your unlikely to know a string of characters from the key

Theres some interesting info in this thread from LinuxQuestions. In particular: post 11

Cheers for the info; I gave up in the end. I did

grep --binary-files=text -i ssh-rsa /dev/hdd5 > output.txt

and left it going for as long as i could bear (5 hours or something), but i only got the public key sadly, which isn't much use tongue

oh well.


.oO Komodo Dave Oo.

Offline

Board footer

Powered by FluxBB