Please, do not advise this as a general solution. The correct solution
is to setup public key authentication or use different userĀ 
Isn't cockpit installed by default on servers since that is the future directive?