Which of the following commands connects to the remote host example.com which has OpenSSH listening on TCP port 2222? (Choose TWO correct answers.)
ssh --port 2222 example.com
ssh -p 2222 example.com
ssh -o Port=2222 example.com
ssh -o GatewayPort=2222 example.com
ssh example.com:2222
Referência recomendada para estudo
The standard way to specify a custom port in SSH is with the -p flag. The -o option allows passing configuration directives like Port.
-p
-o
Port