updated ssh connection to use pw if given