add methods for writing files and attaching to ssh connections