exam questions

Exam LFCS All Questions

View all questions & answers for the LFCS exam

Exam LFCS topic 1 question 240 discussion

Actual exam question from Linux Foundation's LFCS
Question #: 240
Topic #: 1
[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.)

  • A. ssh --port 2222 example.com
  • B. ssh -p 2222 example.com
  • C. ssh -o Port=2222 example.com
  • D. ssh -o GatewayPort=2222 example.com
  • E. ssh example.com:2222
Show Suggested Answer Hide Answer
Suggested Answer: BC 🗳️

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
EliteAllen
6 months, 1 week ago
Selected Answer: BC
To connect to a remote host on a specific TCP port using OpenSSH, you need to specify the correct option to change the default port (which is 22). From the given options, the correct ones are: B. ssh -p 2222 example.com: This is the standard way to specify a different port for the SSH connection. The -p option is used to specify the port number. C. ssh -o Port=2222 example.com: This uses the -o option to specify SSH options in a key=value format. Port=2222 sets the port number for the connection.
upvoted 1 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago