CQLSH Connection error: cqlsh.py: error: 'Documents' is not a valid port number

When trying to connect to my cluster with the CQL Shell I get an error:
“cqlsh.py: error: ‘Documents’ is not a valid port number”

Please help.

This can happen when a password contains special characters.
To solve it, enclose the password string with single quotes like so:

$ docker run -it --rm --entrypoint cqlsh scylladb/scylla -u cassandra -p 'SecretPassword!*' 172.17.0.2
Connected to at 172.17.0.2:9042.
[cqlsh 5.0.1 | Cassandra 3.0.8 | CQL spec 3.3.1 | Native protocol v4]
Use HELP for help.
cassandra@cqlsh>