Do some research
First thing is to check with your local housing authority. In my state they call it Metropolatin Housing Authority. Each county has one. This is under HUD program. Get a free copy of "landlord /tenant law handbook'' or whatever they call it in your state. Easy to understand what your rights and duties are.
Another thing to do is remember that a bank is involved in this and could be to your advantage. The bank is probably going to "buy '' this house at the auction because if the house sells too cheaply it is an immediate loss to the bank and it can mess up their loan loss ratio.
Use this opprotunity to save up your rent plus deposit for your next place because your landlord probably wont pay your deposit back. You may be able to sue him and win , but a deadbeat is hard to collect from. You can always stretch this out to the limit, -- try to use up all the time you can. Remember that an eviction is a trial and you have a right to have it go to trial if you so choose. Your position is that it is difficult to move because the landlord has your deposit and it is difficult to save up for another one so quickly after being in your house only a couple of months.
Before you do any of this make sure that it won't mess up your credit rating. I don't think that an eviction per se will affect it so long as you don't get a judgement against you. A judgement is a money award [against you] from the court that could be assigned to a collection agent and reported to a credit bureau if you don't pay it immediately In any case, if you decide to go to trial in order to get your case heard, GET AND SAVE A COPY OF THE TRIAL-- THIS WILL PROVE THAT IT IS YOUR LANDLORD AND NOT YOU THAT WAS THE CAUSE OF YOUR EVICTION. You can then prove to your new landlord, loan officer, credit reporting agency,ect. the unusual reason for your eviction.
I am a landlord myself and I rented a house recently to a couple with your exact problem. Human services actually gave them $750. 00 to help with my required deposit so they could get out of their old residence . BTW the bank that bought back the place is 1500 miles from here .
REMEMBER check out all this stuff because a couple months free rent could be yours for the taking but DON'T MESS UP YOUR CREDIT RATING . It could cost you much more when you take out a loan in the future than what you save by saving a couple months rent. Let us know how it turns out.