fixed ssh key_filename added password, cleaned code