Linux Administration
medium

Questão de Linux Administration #019e3987

Enunciado da Questão
Linux Administration
#ssh
#openssh
#tcp port
#ssh -p
#ssh -o port
Médio

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

Correta
C

ssh -o Port=2222 example.com

Correta
D

ssh -o GatewayPort=2222 example.com

E

ssh example.com:2222

Explicação Oficial / Explicações da Comunidade

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