fixed ssh stuff for medusa