Sub topic 17
Securing Remote Access and Choosing a Method
This chapter assumes you know what RDP, VNC, SSH, VPN, Microsoft Remote Assistance, RMM and third-party tools do, and that you understand ports, firewalls and IP addresses. Here you will compare them and learn the basic controls that protect each one.
Matching the method to the scenario
Pick the tool by what the technician must reach and what the user must see.
| Scenario | Good choice | Reason |
|---|---|---|
| Admin works on a remote Windows desktop | RDP | Full Windows session over TCP 3389 |
| Mixed Windows, macOS and Linux screens | VNC | Cross-platform screen sharing |
| Configure a Linux server or router | SSH | Encrypted command line on TCP 22 |
| Employee needs internal file shares from home | VPN | Encrypted tunnel into the private network |
| User is present and needs live help | Microsoft Remote Assistance | User invites the helper and watches |
| Patch and monitor hundreds of PCs | RMM | Central agent-based management |
| Quick help for a customer on another network | Third-party screen sharing | No firewall changes needed |
Core security controls
Apply the same basics to every method.
- Strong authentication. Use unique accounts, long passwords and multifactor authentication (MFA). For SSH, prefer key pairs over passwords.
- Encryption. SSH and VPNs encrypt traffic by design. Make sure RDP uses Network Level Authentication and that VNC runs through a VPN or SSH tunnel, since basic VNC may not encrypt traffic.
- Least privilege. Give each person only the access the job needs. Do not use administrator accounts for routine support.
- Limit exposure. Do not forward port 3389 or 5900 directly to the internet. Put RDP and VNC behind a VPN, and restrict allowed source addresses in the firewall.
- Keep software patched. Remote access services are frequent attack targets.
- Log and review. Record who connected and when, and remove accounts that are no longer needed.
- Get consent. For Remote Assistance and screen sharing, the user should approve each session. Close the session and remove temporary tools when finished.
# Connect to a server with a key pair instead of a password
ssh -i ~/.ssh/id_ed25519 [email protected]Common mistakes
- Exposing RDP to the internet with a weak password invites brute-force attacks.
- Leaving a third-party remote tool installed with unattended access after the job is done.
- Sharing one administrator account among several technicians, which removes accountability.
- Using split tunneling on a VPN without considering that unprotected traffic bypasses company controls.
Exercise
A technician must fix a configuration file on a headless Linux server from home. The company wants the session encrypted and the server not exposed to the internet. Which methods fit, and how should they be combined?
Show answer
Use SSH, which gives an encrypted command line on port 22. Have the technician connect to the company VPN first, so the SSH port is reachable only from inside the private network. Add key-based authentication or MFA and a least-privilege account.
Exercise
Why is forwarding TCP port 3389 from the internet to a workstation a poor choice, and what is a safer design?
Show answer
It exposes the RDP service to scans and brute-force attacks. A safer design puts RDP behind a VPN, requires Network Level Authentication and MFA, and limits allowed source addresses in the firewall.