Sample security improvement with getpass

Using getpass to get the connection password in a save way, this way,
the password is not visible on the command line and the shell's history