BlackFriday 2024! Hurry Up, Grab the Special Discount - Save 25% - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

Linux Foundation Exam LFCS Topic 8 Question 81 Discussion

Actual exam question for Linux Foundation's LFCS exam
Question #: 81
Topic #: 8
[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:

Nobuko
3 months ago
I heard the exam proctors are SSH experts, so they'll probably try to trick us with those strange options. But I'm not falling for it!
upvoted 0 times
Anjelica
2 months ago
D) ssh -o GatewayPort=2222 example.com
upvoted 0 times
...
Fannie
2 months ago
C) ssh -o Port=2222 example.com
upvoted 0 times
...
Stephaine
2 months ago
B) ssh -p 2222 example.com
upvoted 0 times
...
Lizbeth
2 months ago
A) ssh --port 2222 example.com
upvoted 0 times
...
...
Maricela
3 months ago
D and E are just weird. Who would use those options? I'm sticking with B and C.
upvoted 0 times
Margurite
2 months ago
Yeah, I always use -p for port and -o for options. B and C are the way to go.
upvoted 0 times
...
France
2 months ago
I agree, D and E seem unnecessary. B and C should work just fine.
upvoted 0 times
...
...
Jonelle
3 months ago
I always mix up the port options. I'm just glad I don't have to remember them on the exam!
upvoted 0 times
Domonique
2 months ago
I always double-check the port option too, it can get confusing.
upvoted 0 times
...
Izetta
2 months ago
E) ssh example.com:2222
upvoted 0 times
...
Hyman
3 months ago
B) ssh -p 2222 example.com
upvoted 0 times
...
...
Rory
3 months ago
I'm not sure, but I think C) and D) could also work since they mention the port
upvoted 0 times
...
Domonique
3 months ago
I agree with Alise, A) and B) make sense because they specify the port number
upvoted 0 times
...
Lillian
3 months ago
B and C are the correct answers. The -p and -o Port=2222 options are the standard ways to specify the port when connecting to an SSH server.
upvoted 0 times
Bernardo
2 months ago
B and C are the correct answers.
upvoted 0 times
...
Cherrie
2 months ago
E) ssh example.com:2222
upvoted 0 times
...
Dolores
2 months ago
D) ssh -o GatewayPort=2222 example.com
upvoted 0 times
...
Karma
2 months ago
C) ssh -o Port=2222 example.com
upvoted 0 times
...
Marisha
3 months ago
B) ssh -p 2222 example.com
upvoted 0 times
...
Salome
3 months ago
A) ssh --port 2222 example.com
upvoted 0 times
...
...
Alise
3 months ago
I think the correct answers are A) and B)
upvoted 0 times
...

Save Cancel