Which command configures the SSH service to listen on port 2222 and enables SSH in RouterOS?

Study for the MTCNA Foundation Exam. Prepare with flashcards and multiple choice questions, each question has hints and explanations. Get ready for your certification!

Multiple Choice

Which command configures the SSH service to listen on port 2222 and enables SSH in RouterOS?

Explanation:
In RouterOS, to have SSH listen on a specific port, you must both set the port and ensure the SSH service is enabled. If the service isn’t enabled, nothing will listen on any port, and if you only change the port while the service is disabled, you won’t get any listening at 2222. The best option combines both steps in one line: first set the SSH port to 2222, then enable the SSH service, using a semicolon to chain the commands. This guarantees the SSH listener is active on the desired port immediately. The other options fail because they either change only one part (port or enable) or disable SSH, which would stop the service altogether.

In RouterOS, to have SSH listen on a specific port, you must both set the port and ensure the SSH service is enabled. If the service isn’t enabled, nothing will listen on any port, and if you only change the port while the service is disabled, you won’t get any listening at 2222. The best option combines both steps in one line: first set the SSH port to 2222, then enable the SSH service, using a semicolon to chain the commands. This guarantees the SSH listener is active on the desired port immediately. The other options fail because they either change only one part (port or enable) or disable SSH, which would stop the service altogether.

Subscribe

Get the latest from Examzify

You can unsubscribe at any time. Read our privacy policy