Which of the following commands connects to the remote host example.com which has OpenSSH listening on TCP port 2222? (Choose TWO correct answers.)
Suggested Answer: B, C
Get Premium LFCS Questions
as Interactive Web-Based Practice Test or PDF
Real Exam Format
Detailed Explanations
Instant Access
Get Your Practice Test
31 comments · newest first
NI
Nieves
11 months ago
Wait, can you really use example.com:2222? That’s surprising!
FA
Farrah
11 months ago
I thought D was a thing, but I guess not?
DA
Daniel
12 months ago
C works too, right?
LA
Lamar
12 months ago
Definitely B, but A seems off.
AN
Annice
1 year ago
A and B are correct.
SC
Scarlet
1 year ago
I don't think option D is right because `GatewayPort` doesn't seem related to connecting directly to a port. It sounds more like a configuration option for gateways.
RE
Rebeca
1 year ago
I practiced a similar question where we had to connect to a different port, and I think option C with `-o Port=` could also work, but I'm not 100% sure.
LE
Leoma
1 year ago
I'm a bit unsure about option A. I feel like the `--port` syntax might not be standard for SSH, but it could be worth considering.
DO
Doug
1 year ago
I remember that the `-p` option is commonly used for specifying a port in SSH, so I think option B is definitely one of the correct answers.
JO
Jolanda
1 year ago
This is a good test of our SSH knowledge. I'll go with options A and B - the --port and -p options seem like the most straightforward ways to specify the port number.
CA
Cassi
1 year ago
I've used the -p option before to connect to a non-standard SSH port, so I'm pretty confident that option B is one of the correct answers. I'll also try option C just to be sure.
JO
Josefa
1 year ago
Okay, let me think this through. The question says the SSH server is listening on port 2222, so I'll try options B and C since they both seem to specify the port directly.
EM
Emelda
1 year ago
Hmm, I'm not sure about this one. I know we need to connect to the remote host on a specific port, but I'm not sure which of these options is the right way to do that.
CO
Colton
1 year ago
This looks straightforward. I'll try options A and B, those seem like the most direct ways to specify the port.
JU
Justa
1 year ago
Hmm, I'm a bit unsure about this one. The wording is a bit tricky, and I want to make sure I understand the Brokered Authentication pattern correctly before answering.
FA
Fabiola
1 year ago
Okay, let me think this through. The administrator wants all users to have access, so "Execute" alone wouldn't be enough. "Allow" is too broad and non-specific. I'm leaning towards "Read & execute" as the best option.
MA
Malika
1 year ago
Key steps: Check loan date, compute interest component, remember the standard 150k cap for self-occupied property interest deduction.
VA
Valentin
2 years ago
I agree, B and C are the way to go. The other options are a bit too complicated or just plain weird.
MA
Martin
2 years ago
Definitely, the others seem unnecessary.
CH
Cherelle
2 years ago
I agree, those are the most straightforward choices.
BA
Barbra
2 years ago
I think B and C are the correct options.
CA
Carma
2 years ago
Haha, options A and E are funny. Who would use '--port' or 'example.com:2222' for an SSH command? That's just asking for trouble!
MA
Markus
2 years ago
Definitely, I would stick to options B and C for safety.
EL
Elliott
2 years ago
I agree, those options seem risky.
YO
Youlanda
2 years ago
Definitely, sticking with the more standard options is the way to go.
SU
Susy
2 years ago
I know right, those options seem risky.
AN
Antonio
2 years ago
Definitely, using the standard '-p' option is much safer for connecting to a remote host.
SU
Sunny
2 years ago
I know, right? Those options seem like a recipe for disaster.
IL
Ilda
2 years ago
Options B and C are the correct answers. The -p flag and the -o Port=2222 option both work to specify the port for the SSH connection.
QU
Quinn
2 years ago
C) ssh -o Port=2222 example.com
QU
Quinn
2 years ago
B) ssh -p 2222 example.com