Modification to sshfuncs to support multi hop commands