Basic parsing and ssh function