Linux Administration
medium

Pregunta de Linux Administration #019e3987

Enunciado de la Pregunta
Linux Administration
#ssh
#openssh
#tcp port
#ssh -p
#ssh -o port
Medio

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

Correcto
C

ssh -o Port=2222 example.com

Correcto
D

ssh -o GatewayPort=2222 example.com

E

ssh example.com:2222

Explicación Oficial / Explicaciones de la Comunidad

The standard way to specify a custom port in SSH is with the -p flag. The -o option allows passing configuration directives like Port.