One Hindu spiritual discipline is defined by Patanjali's "Yoga Sutras." At the outset itself, it states "Yoga Chitta Vritti Nirodhaha", i.e., control of the mind. This complete Yoga is quite different from the commonly practiced one of physical & breathing exercises. These may improve health but may not be spiritually productive.
Coming back to Islam, the word "Jihad" is not present in Qur'an. It is however mentioned in the "Hadith", contemporary accounts of the life & sayings of Mohammad. After returning from a battle defending his faith, he is supposed to have said "We are returning from the lesser jihad to continue the greater jihad, the more difficult & more important battle against our own ego, selfishness, greed & evil."
This may be similar to the "Chitta Vritti Nirodaha" of Patanjali & also explain Sri Ramakrishna's desire to practice Islam's greater jihad.