Fixes ssh loop error for pseudo tty terminal's and refactors utils
type fix for aws delete instances
Fixes ssh loop error for pseudo tty terminal's and refactors utils