I am about to sign a lease for a commercial space. The landlord is asking me to pay two months' rent as a security deposit. Is he entitled to do so?

Yes. Although a security deposit is not legally required when signing a commercial lease, the landlord can request one. Its amount is freely determined by the parties to the contract.