Hey Karan,
At the moment, Mendix offers easy integration to external applications via REST and SOAP only, meaning you can directly use this inside microflow as an activity.
Now for SSH protocol, there must be an implementation to do it over Java(you can search over stack overflow) and then see whether you can achieve it over Java action or not.
Regards,
Naman Khard