How much do you trust your File System?
What kind of idiot would do this on purpose?
rm -f .ssh/*
I'll tell you: The kind that is using #DragonFlyBSD #Hammer2
root@anzu:~ # hammer2 recover /dev/da0s1d .ssh /home/gnemmi/tmp
[gnemmi@anzu ~]% ls tmp/.ssh/
id_rsa.00001 known_hosts.00002
id_rsa.pub.00001 known_hosts.old.00001
Rename the files, moved them back to .ssh/ and done
Even the mtime got preserved!
In detail https://leaf.dragonflybsd.org/~gnemmi/recover
7 years without a corrupted file !
076萌SNS is a social network, courtesy of 076. It runs on GNU social, version 2.0.2-beta0, available under the GNU Affero General Public License.
All 076萌SNS content and data are available under the Creative Commons Attribution 3.0 license.