Initial import of SSHLibrary inspired code