Priya administers a Linux server in a branch office and needs to manage it remotely over an encrypted command-line session. The perimeter firewall blocks all inbound traffic by default. Which single TCP port should she open to allow this secure remote administration?
- APort 23, so the Telnet service can accept the remote management session from her workstation
- BPort 22, so the SSH service can accept the encrypted remote management session she needs Correct
- CPort 3389, so the RDP service can accept the encrypted remote management session she needs
- DPort 21, so the FTP service can accept the remote management session from her workstation
Why A is wrong: Telnet does use port 23, but it sends credentials and commands in clear text, so it is the insecure choice rather than the encrypted session required.
Why B is correct: SSH listens on TCP 22 and encrypts the entire command-line session, which is exactly the secure remote administration Priya requires.
Why C is wrong: RDP on 3389 is encrypted, but it delivers a graphical Windows desktop, not the command-line session for a Linux server described here.
Why D is wrong: FTP on 21 transfers files rather than providing an interactive shell, and its control channel is unencrypted, so it fits neither requirement.