added autodetection for ssh port, user and password