Deal of The Day! Hurry Up, Grab the Special Discount - Save 25% - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

Linux Foundation LFCS Exam - Topic 6 Question 76 Discussion

Which of the following commands connects to the remote host example.com which has OpenSSH listening on TCP port 2222? (Choose TWO correct answers.)
B) ssh -p 2222 example.com and C) ssh -o Port=2222 example.com
A) ssh --port 2222 example.com
D) ssh -o GatewayPort=2222 example.com
E) ssh example.com:2222

Linux Foundation LFCS Exam - Topic 6 Question 76 Discussion

Actual exam question for Linux Foundation's LFCS exam
Question #: 76
Topic #: 6
[All LFCS Questions]

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

Show Suggested Answer Hide Answer
Suggested Answer: B, C

Contribute your Thoughts:

0/2000 characters
Nieves
8 months ago
Wait, can you really use example.com:2222? That’s surprising!
upvoted 0 times
...
Farrah
8 months ago
I thought D was a thing, but I guess not?
upvoted 0 times
...
Daniel
9 months ago
C works too, right?
upvoted 0 times
...
Lamar
9 months ago
Definitely B, but A seems off.
upvoted 0 times
...
Annice
9 months ago
A and B are correct.
upvoted 0 times
...
Scarlet
9 months 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.
upvoted 0 times
...
Rebeca
9 months 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.
upvoted 0 times
...
Leoma
10 months 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.
upvoted 0 times
...
Doug
10 months 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.
upvoted 0 times
...
Jolanda
10 months 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.
upvoted 0 times
...
Cassi
10 months 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.
upvoted 0 times
...
Josefa
10 months 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.
upvoted 0 times
...
Emelda
10 months 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.
upvoted 0 times
...
Colton
10 months ago
This looks straightforward. I'll try options A and B, those seem like the most direct ways to specify the port.
upvoted 0 times
...
Justa
10 months 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.
upvoted 0 times
...
Fabiola
10 months 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.
upvoted 0 times
...
Malika
10 months ago
Key steps: Check loan date, compute interest component, remember the standard 150k cap for self-occupied property interest deduction.
upvoted 0 times
...
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.
upvoted 0 times
Martin
2 years ago
Definitely, the others seem unnecessary.
upvoted 0 times
...
Cherelle
2 years ago
I agree, those are the most straightforward choices.
upvoted 0 times
...
Barbra
2 years ago
I think B and C are the correct options.
upvoted 0 times
...
...
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!
upvoted 0 times
Markus
2 years ago
Definitely, I would stick to options B and C for safety.
upvoted 0 times
...
Elliott
2 years ago
I agree, those options seem risky.
upvoted 0 times
...
Youlanda
2 years ago
Definitely, sticking with the more standard options is the way to go.
upvoted 0 times
...
Susy
2 years ago
I know right, those options seem risky.
upvoted 0 times
...
Antonio
2 years ago
Definitely, using the standard '-p' option is much safer for connecting to a remote host.
upvoted 0 times
...
Sunny
2 years ago
I know, right? Those options seem like a recipe for disaster.
upvoted 0 times
...
...
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.
upvoted 0 times
Quinn
2 years ago
C) ssh -o Port=2222 example.com
upvoted 0 times
...
Quinn
2 years ago
B) ssh -p 2222 example.com
upvoted 0 times
...
...

Save Cancel