Recovering the deleted JPG files.

Its been some time i posted here, my apology.
It was great last evening as me Achet and Tanya wer out 4 dinner and at same time we been clicking our photos.

Tanya unknowingly deleted all the photographs we had taken that evening and she was feeling way to bad. I knew there must be some way to recover the data and hence i was relaxed.

After googling and speaking with Shastry i figured out the way to recover all the deleted images with a FOSS software name “Foremost”

Installing the software was 2 easy easy like always on ubuntu.

Checking the man of foremost i got basic idea about it.

steps i followed:–

1. installing foremost

[php]$ sudo apt-get install foremost

2. Figuring out the device name and mount point

[php]$ mount

it told me my drive is /dev/sdb1 execution

[php]$ sudo foremost -t jpg -i /dev/sdb1


I got a directory with name “output” in my current working directory with a subdirectory name “jpg” and i could see all my deleted images there.

I slept at 4 am and woke up at 9 and felt like sharing it with all of you so i wrote about it right away.


Curious case of denyhost and ssh.

I been using denyhost on my own server and many other boxes i been taking care of.

I was getting error whenever i tried connecting to my server
“ssh_exchange_identification: Connection closed by remote host”

After checking logfile i figured that its happening because of the denyhost. The documentation at the denyhost website explains how to remove the blacklisted Ip

Now i had to find real issue why is my legitimate IP getting blacklisted again and again?

My logfile gave me a Warning

Aug 25 16:39:34 vm27 sshd[13147]: reverse mapping checking getaddrinfo for [] failed – POSSIBLE BREAK-IN ATTEMPT!

To get this error removed what i did was, I had to add UseDns no to /etc/ssh/ssd_config file.

This removed warning messages and also i was not getting anymore issue of getting IP blocked from denyhost.