LPI Exam Questions

which has OpenSSH listening on TCP port 2222?

Which of the following commands connects to the remote host example.com which has OpenSSH listening on
TCP port 2222? (Choose TWO correct answers.)

A.
ssh –port 2222 example.com

B.
ssh -p 2222 example.com

C.
ssh -o Port=2222 example.com

D.
ssh -o GatewayPort=2222 example.com

E.
ssh example.com:2222