Sub topic 17
Securing Remote Access and Choosing a Method
This chapter assumes you know what RDP, VNC, SSH, VPN, Microsoft Remote Assistance (MSRA), RMM platforms and third-party tools do, as covered in the earlier chapters. It also assumes you know basic networking terms: IP address, port and firewall. Here you will learn how to pick one method for a given scenario and how to lock it down. These are the decisions the A+ Core 2 exam tests.
Why remote access is a target
Every remote access method gives someone control of a machine from somewhere else. That is useful for support and useful for attackers. Common attacks include:
- Scanning the internet for open remote ports, such as RDP on TCP 3389.
- Guessing or reusing passwords (brute force and credential stuffing).
- Tricking a user into approving a remote session (social engineering).
- Stealing a session or reading traffic on a plain-text protocol.
Securing remote access means reducing each of these risks. The three basic controls are authentication, encryption and least privilege.
The three core controls
Authentication
Authentication proves who is connecting. Use these practices:
- Require strong, unique passwords, or better, key-based login for SSH.
- Turn on multifactor authentication (MFA) for VPNs, RMM consoles and third-party tools. MFA combines something you know (a password) with something you have (a phone or token) or something you are.
- Lock accounts after repeated failed attempts to slow brute-force guessing.
- Disable or rename default accounts, and never share one login among several technicians. Individual accounts give you an audit trail.
Encryption
Encryption scrambles traffic so a person on the network cannot read it. SSH, VPNs and RDP (with Network Level Authentication and TLS) encrypt by default. Older tools such as Telnet send everything, including passwords, in plain text. Do not use them for remote administration. Some VNC setups also do not encrypt the whole session, so tunnel VNC through SSH or a VPN when you cannot confirm it is encrypted.
Least privilege
Least privilege means giving a user or tool only the access needed for the task. Examples:
- Add only the required users to the Remote Desktop Users group instead of making everyone an administrator.
- Give a helpdesk technician an RMM role that can run approved scripts but cannot delete the console's data.
- Use a standard account for daily work and elevate only when needed.
Reducing exposure
Beyond the three controls, shrink the attack surface:
- Do not expose management ports to the internet. Put RDP and VNC behind a VPN instead of forwarding the port on the router.
- Limit by source. A firewall rule can allow remote access only from known addresses or the VPN subnet.
- Change defaults with care. Moving SSH off port 22 reduces noise from automated scans, but it is not real security. Treat it as a minor extra.
- Patch. Remote access software is a common target for exploits. Keep clients, servers, VPN appliances and RMM agents updated.
- Log and review. Keep logs of who connected and when. Unexpected logins at 3 a.m. are a warning sign.
- Disable what you do not use. Turn off Remote Desktop, Remote Assistance and SSH services on machines that do not need them.
- End sessions. Set idle timeouts and log off when finished.
Remote Assistance and screen-sharing tools add a human factor. The user should be present, should see an invitation they asked for, and should be able to end the session at any time. Never accept an unexpected request to share a screen. Scammers pose as "support" to get exactly that.
Choosing a method
Pick the method by asking four questions. What is the target operating system? Do you need a full desktop or only a command line? Is the user present? Is the target on a private network you cannot reach directly?
| Scenario | Good choice | Why |
|---|---|---|
| Admin manages a Windows server's desktop from inside the company | RDP | Built into Windows, full desktop, encrypted |
| Technician manages a Linux server or network switch | SSH | Encrypted command line, key-based login, scriptable |
| Employee works from home and needs file shares and internal sites | VPN | Extends the private network over an encrypted tunnel |
| Helping a user who is sitting at their PC and can invite you | Microsoft Remote Assistance or a third-party screen sharing tool | User approves and watches the session |
| Support of a Mac or Linux desktop with a graphical view | VNC (tunneled) or a third-party tool | Works across platforms |
| Managing hundreds of company PCs, patching and running scripts | RMM | Central console, agents, automation, reporting |
| Quick video call with screen share and file exchange | Video conferencing or file transfer tool | Fast, no setup, but control and logging vary |
Some combinations work well together. A common pattern is to connect to the VPN first, then start an RDP or SSH session to the internal machine. The VPN protects the transport, and RDP or SSH provides the access to the specific host.
Worked example: securing a remote SSH login
Suppose you manage a Linux file server at 192.168.1.10 and need to administer it from your laptop. First you connect to the company VPN. Then you open an encrypted session.
ssh [email protected]This connects as user admin on the default port, TCP 22. To harden the server, you would apply these settings in its SSH configuration file (/etc/ssh/sshd_config):
# Hardening options for /etc/ssh/sshd_config
PermitRootLogin no
PasswordAuthentication no
MaxAuthTries 3
AllowUsers adminPermitRootLogin no blocks direct login as root. PasswordAuthentication no forces key-based login, which defeats password guessing. MaxAuthTries 3 limits failed attempts per connection. AllowUsers admin lets only the named account log in. After you edit the file, restart the SSH service so the changes take effect.
Common mistakes
- Forwarding RDP straight to the internet. This is the classic error. Use a VPN or a remote desktop gateway.
- Relying on a password alone. Add MFA wherever the tool supports it.
- Leaving remote tools installed and running after a support call. Remove or disable them.
- Giving every technician full administrator rights in the RMM. Assign roles.
- Trusting unsolicited help. A caller who asks you to install a remote tool is a red flag. Verify the person through a separate, known channel.
- Confusing a VPN with a remote control tool. A VPN gives network access, not control of a desktop. You still need RDP, SSH or another tool on top.
Summary of key points
- Secure remote access with authentication (strong passwords, MFA), encryption and least privilege.
- Keep management ports off the public internet. Put them behind a VPN and a firewall.
- Patch remote tools, log activity and disable services you do not use.
- Choose by need: RDP for Windows desktops, SSH for command lines, VNC for cross-platform graphics, VPN for private network access, MSRA or screen sharing for attended help, RMM for fleets.
Exercise
A technician must fix a configuration file on a remote Linux server from home. The server is on the company's private network. Name the methods you would combine and two settings or practices that secure the connection.
Show answer
Connect to the company VPN first so the traffic is encrypted and the server is reachable without exposing it to the internet. Then use SSH to get an encrypted command line. Secure it with key-based authentication (or MFA on the VPN) and least privilege, such as disabling root login and allowing only named accounts.
Exercise
A user receives a phone call from someone claiming to be from "Microsoft support" who asks the user to approve a screen-sharing request. What should the user do, and which security idea does this scenario illustrate?
Show answer
The user should refuse, end the call and report it to the real help desk. The scenario illustrates social engineering. Remote sessions should only be started by the user after verifying who is asking through a known channel.
Exercise
Why is forwarding TCP port 3389 from the router to a desktop a poor way to allow remote work, and what should replace it?
Show answer
It exposes RDP directly to the internet, where attackers scan for it and try to guess passwords or exploit unpatched flaws. Replace it with a VPN (optionally with MFA) so the user reaches RDP only from inside the private network.