Cyber Monday 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 9 Question 79 Discussion

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

Bette
4 months ago
Haha, D) ssh -o GatewayPort=2222 example.com? Really? Who would use that in the real world?
upvoted 0 times
Galen
3 months ago
Peter and Galen are right, those are the correct commands to connect to the remote host.
upvoted 0 times
...
Peter
3 months ago
B) ssh -p 2222 example.com is also a valid option.
upvoted 0 times
...
Romana
3 months ago
A) ssh --port 2222 example.com is the correct command.
upvoted 0 times
...
...
Vanesa
4 months ago
E) ssh example.com:2222 is a valid alternative, but I prefer the more explicit -p option.
upvoted 0 times
Annabelle
4 months ago
E) ssh example.com:2222 is a valid alternative, but I prefer the more explicit -p option.
upvoted 0 times
...
Lanie
4 months ago
B) ssh -p 2222 example.com
upvoted 0 times
...
Miesha
4 months ago
A) ssh --port 2222 example.com
upvoted 0 times
...
...
Moira
5 months ago
A) ssh --port 2222 example.com is also correct. It's a bit longer but does the same thing.
upvoted 0 times
Aretha
3 months ago
C) ssh example.com:2222
upvoted 0 times
...
Walton
3 months ago
B) ssh --port 2222 example.com is also correct. It's a bit longer but does the same thing.
upvoted 0 times
...
Staci
3 months ago
A) ssh -p 2222 example.com
upvoted 0 times
...
Emmanuel
3 months ago
A) ssh -p 2222 example.com is shorter and easier to remember.
upvoted 0 times
...
Maryann
4 months ago
B) ssh --port 2222 example.com is also a valid command to connect to the remote host example.com on port 2222.
upvoted 0 times
...
Skye
4 months ago
A) ssh -p 2222 example.com is the correct command to connect to the remote host example.com on port 2222.
upvoted 0 times
...
...
Yolande
5 months ago
I'm not sure about option E) ssh example.com:2222. It looks like it's trying to connect to a different port on the host.
upvoted 0 times
...
Edna
5 months ago
I agree with Bo. Those options make sense because they specify the port number for the connection.
upvoted 0 times
...
Wilburn
6 months ago
B) ssh -p 2222 example.com is the correct answer. It's a concise and standard way to specify the port for the SSH connection.
upvoted 0 times
Cora
5 months ago
B) ssh -p 2222 example.com
upvoted 0 times
...
Francesco
5 months ago
A) ssh --port 2222 example.com
upvoted 0 times
...
...
Bo
6 months ago
I think the correct answers are B) ssh -p 2222 example.com and C) ssh -o Port=2222 example.com.
upvoted 0 times
...

Save Cancel
az-700  pass4success  az-104  200-301  200-201  cissp  350-401  350-201  350-501  350-601  350-801  350-901  az-720  az-305  pl-300  

Warning: Cannot modify header information - headers already sent by (output started at /pass.php:70) in /pass.php on line 77