All perfect praise be to Allah the Lord of the Worlds. May His peace and blessings be upon our Prophet Mohammad and upon all his family and companions.
Ijarah is "to give something on rent" or "providing service for a wage." Since the house owner will give back the rent then this isn`t considered Ijarah. Rather, this is a loan and the Sharia maxim, in this regard, states: "Every loan that attracts a benefit/advantage is Riba (Usury)." Moreover, as the loan giver (Tenant) will receive a benefit, which is living in the house for two years, then this is a prohibited usurious contract, which is impermissible to deal with.
In order to amend this contract, the house owner must rent it out against a specific sum for a year or two, the tenant must possess the benefit of the house and the owner must possess the rent. And Allah the Almighty Knows Best.