Refactored to use ssh in mixin