Hardware FixRecommendedDevice not working? Your driver may be the problemCheck updates for common hardware issues.Fix DriversHalloween DealsAmazon USHalloween week deals: useful picks before month-endAmazon US: current deals, useful picks and tech finds.Check DealsWindows FixRecommendedWindows errors stealing your time? Find the fix fastScan stability, cleanup and performance issues.Fix Now×
Skip to content
World desk5 min

How to SSH into Your Home NAS or Server: From Your LAN and from Anywhere

Enable SSH on your NAS or server, connect by private IP on your home network, and reach it from anywhere through a VPN or Tailscale instead of router port forwarding.
Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

To SSH into a home NAS or server from inside your network, enable SSH in the host’s own settings, find its private IP address, and run ssh with an account the host allows and the port it is listening on. To connect from outside, first put your remote device onto your home network through a VPN or a private overlay such as Tailscale, then use the same private address or tailnet name. Do not open SSH to the internet through your router as your first setup.

What you need before you start

  • An SSH server on the host. SSH is an encrypted protocol for remote login and file transfer. The computer you connect from runs the client; the NAS or server runs the server. OpenSSH provides the common client, server, key-generation, and SFTP tools on most systems.
  • SSH switched on in the host. Many NAS systems ship with SSH disabled or require a vendor setting to enable it. The menu names below are examples from specific products and versions, not a universal path.
  • An account the host permits for remote login. On QNAP QTS 5.2, only administrators can log in remotely over SSH. Other systems apply their own rules, so check yours.
  • The host’s private IP address and SSH port. The standard SSH port is 22. Many people change it, so use the port you configured.

Step 1: Enable SSH on the host

QNAP (QTS 5.2)

  1. Sign in to QTS.
  2. Go to Control Panel > Network & File Services > Telnet / SSH.
  3. Select Allow SSH connection.
  4. Optionally change the port number.
  5. Click Apply.

Synology

  1. Open Control Panel > Terminal & SNMP > Terminal.
  2. Enable the SSH service.
  3. Apply the setting, then confirm the port before connecting.

Synology’s documentation describes this location without tying it to a single software version in the material used here, so check the help page for your installed DSM release if the labels differ.

As an Amazon Associate I earn from qualifying purchases.

General-purpose Linux or other servers

Before connecting, confirm that the SSH server is installed, enabled, and listening on the port you expect. The exact install and service commands depend on your distribution and init system, so use that system’s own documentation. The OpenSSH project documents the server and client roles, but a single universal service command does not exist across distributions.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Step 2: Connect from your home network

Find the host’s private IP address

Look for the address in the NAS or server’s network settings, or in your router’s list of connected clients. Reserving a fixed address for the host in your router’s DHCP settings keeps the command from breaking when the lease changes.

#1 Best Overall
Sale
UGREEN NAS DH2300 2-Bay for Beginners & Personal Users, Phone Backup | AI Album, Private Cloud/Remote Access, File Sharing, Multi-Device Backup, Home Entertainment, 4GB RAM on Board (Diskless)
  • Entry-level NAS Personal Storage:UGREEN NAS DH2300 is your first and best NAS made easy. It is designed for beginners who want a simple, private way to store videos, photos and personal files, which is intuitive for users moving from cloud storage or external drives and move away from scattered date across devices. This entry-level NAS 2-bay perfect for personal entertainment, photo storage, and easy data backup (doesn't support Docker or virtual machines).
  • Set Your Devices Free, Expand Your Digital World: This unified storage hub supports massive capacity up to 64TB.*Storage drives not included. Stop Deleting, Start Storing. You can store 22 million 3MB images, or 2 million 30MB songs, or 43K 1.5GB movies or 67 million 1MB documents! UGREEN NAS is a better way to free up storage across all your devices such as phones, computers, tablets and also does automatic backups across devices regardless of the operating system—Window, iOS, Android or macOS.
  • The Smarter Long-term Way to Store: Unlike cloud storage with recurring monthly fees, a UGREEN NAS enclosure requires only a one-time purchase for long-term use. For example, you only need to pay $459.98 for a NAS, while for cloud storage, you need to pay $719.88 per year, $2,159.64 for 3 years, $3,599.40 for 5 years. You will save $6,738.82 over 10 years with UGREEN NAS! *NAS cost based on DH2300 + 12TB HDD; cloud cost based on 12TB plan (e.g. $59.99/month).
  • Blazing Speed, Minimal Power: Equipped with a high-performance processor, 1GbE port, and 4GB RAM on Board, this NAS handles multiple tasks with ease. File transfers reach up to 125MB/s—a 1GB file takes only 8 seconds. Don't let slow clouds hold you back; they often need over 100 seconds for the same task. The difference is clear.
  • Let AI Better Organize Your Memories: UGREEN NAS uses AI to tag faces, locations, texts, and objects—so you can effortlessly find any photo by searching for who or what's in it in seconds. It also automatically finds and deletes similar or duplicate photo, backs up live photos and allows you to share them with your friends or family with just one tap. Everything stays effortlessly organized, powered by intelligent tagging and recognition.

Connect with OpenSSH (macOS, Linux, or Windows)

From a terminal, use the general form below. Replace the example username, address, and port with the values for your host.

ssh [email protected]

If the host listens on a non-default port, add -p:

ssh -p 2222 [email protected]

On Windows, use an SSH-capable terminal that includes the OpenSSH client. QNAP’s support article also describes PuTTY as a client option. In both cases you supply the same three values: the host address, the SSH port, and a permitted account.

Rank #2
Sale
UGREEN NAS DXP2800 2-Bay for Advanced Home Users, Remote Workers & Creators | Home Media & Data Center, Docker & VM, Plex, Fast File Transfer, Intel N100, 8GB DDR5, 2.5GbE, 2x M.2 NVMe, 4K HDMI(Diskless)
  • 【Advanced Home Data & Media Hub】For advanced home users who need phone backup, file storage, and centralized data management. Centralize family photos, 4K videos, movies, computer backups, and personal files in one place while running multiple apps for home entertainment and everyday data management. Suitable for households with growing digital libraries and multiple NAS use cases.
  • 【Built for Creators, Media Servers & Advanced Apps】Powered by the Intel N100 Quad-Core CPU, 8GB DDR5 RAM, 2.5GbE networking, and dual M.2 NVMe slots, DXP2800 handles large files and heavier workloads with ease. Run Docker, virtual machines, and media server applications compatible with Plex—ideal for content creators, tech enthusiasts, and advanced home users managing 4K videos, RAW photos, personal media libraries, and multiple NAS apps.
  • 【Up to 80TB for Growing Digital Libraries】 Supports up to 80TB of storage using two HDD bays and two M.2 NVMe SSD slots for family photos, movies, RAW photos, 4K videos, work files, and device backups. AI photo management supports recognition of people, objects, scenes, and locations, album organization, and duplicate photo detection. HDDs and SSDs are not included.
  • 【AI-powered Home Surveillance】Turn DXP2800 into a centralized home surveillance hub by connecting compatible network cameras and storing recordings locally on your NAS. AI-powered features include Face Recognition, People Detection, and Pet Detection, helping advanced home users review important events more efficiently while managing home surveillance and personal data in one place.
  • 【One data Center Across Your Devices】Keep files from desktops, laptops, phones, tablets, and other devices together instead of scattered across cloud accounts and external drives. Access, back up, organize, and share data across Windows, macOS, Android, iOS, web browsers, and compatible smart TVs—ideal for creators and advanced home users working across multiple devices.

Connecting from outside your home

Remote access depends on reaching the host’s private address, not on exposing SSH to the internet. Two approaches work well for this.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Option A: Connect to your home VPN, then use the NAS’s LAN IP

  1. Establish a VPN tunnel from the remote computer or phone into your home network. This requires a VPN server you already run or can configure on your router or NAS.
  2. Confirm the tunnel is active and that your device has received a home-network address.
  3. Run the same ssh command you use at home, using the NAS’s LAN address.

QNAP’s current external-access support article, last modified August 4, 2026, recommends this order and states that the NAS does not need to be publicly exposed.

Rank #3
Synology 2-Bay DiskStation DS223j (Diskless)
  • Secure private cloud - Enjoy 100% data ownership and multi-platform access from anywhere
  • Easy sharing and syncing - Safely access and share files and media from anywhere, and keep clients, colleagues and collaborators on the same page
  • Automated Backup Protection - Set-and-forget backups for Macs, PCs and mobile devices to multiple destinations including cloud and external drives
  • Home Security System - Record and monitor your property 24/7 with support for multiple IP cameras and remote viewing
  • 2-Year Warranty - Reliable hardware backed by Synology's expert customer support team and ongoing software updates

Option B: Use a private overlay such as Tailscale

  1. Install Tailscale on the SSH client and on the NAS or server, and sign in on both.
  2. Allow the connection under your tailnet access policy.
  3. Connect by the host’s MagicDNS name or its Tailscale IP address.

Tailscale’s documentation, checked in January 2026, uses examples such as ssh [email protected] and ssh username@device. Substitute your own account and host name.

Choose the SSH model for the Tailscale path

Tailscale can carry either of two SSH setups, and they differ in who controls authentication:

Rank #4
UGREEN NAS DXP4800 Pro 4-Bay for IT Professionals, Developers & Power Users | Small-Team File Server, VMs&Self-Hosted App, i3-1315U, 8GB DDR5, Built-in 128GB SSD, 10GbE+2.5GbE, 2x M.2NVMe Slots, Diskless
  • Pro-Performance NAS Engineered for Demanding Workflows: This NAS is built for offices, businesses, and power users who need serious performance. Powered by a pro-performance Intel processor, it serves as a versatile private workstation that delivers smooth performance for running virtual machines and Docker containers. It functions as an IT hub for video editors, developers, virtualization tasks, and growing teams with advanced workflows
  • Pro-Grade Core Hardware Performance: Features the Intel Core i3-1315U Processor (6 Cores, 8 Threads, up to 4.5GHz Turbo), offering a significant performance lead. It's paired with 8GB of high-speed DDR5 RAM (expandable to 96GB) and 13th Gen Intel UHD Graphics for smooth multitasking. Dual high-speed network ports (10GbE + 2.5GbE) enable blazing-fast transfers, reaching up to 1.25GB/s
  • Ultimate Flexibility with Docker, VMs & Smart AI: It offers comprehensive support for Docker and Virtual Machines, unlocking endless possibilities to run personal websites, smart home hubs, or private development environments. The local AI-powered Photo Album automatically recognizes faces, scenes, and content. All AI processing happens on-device, ensuring your privacy while managing massive photo libraries effortlessly
  • Massive Storage & Intuitive All-in-One System: It supports a colossal 144TB capacity (4x HDD + 2x M.2 SSD), enough for approximately 4.2 million 35MB RAW photos, 3.6K 40GB 4K movies, 5 million 30MB lossless music, or 150 million 1MB files. Dual M.2 PCIe 4.0 SSD slots can be used as a high-speed cache or storage pool to eliminate HDD bottlenecks. The intuitive UGOS Pro operating system integrates a media center, photo management, cloud sync, downloads, and more for a one-stop experience
  • Enterprise-Grade Data Security & Privacy: Provides multiple RAID configuration options (0, 1, 5, 10) for flexibility between capacity, speed, and protection. Features granular user permission controls (supporting up to 2048 accounts). The Data Vault offers an extra layer of security by hiding and encrypting sensitive files. Certified for strong privacy and data protection by TV SD (ETSI EN 303 645) and TRUSTe
Aspect Traditional SSH over Tailscale Tailscale SSH
How you authenticate The host’s ordinary SSH keys or passwords Your tailnet identity, checked against access policies
Existing server configuration Kept as it is Tailscale manages SSH authentication and authorization
Best fit Single-user hosts with existing keys, or setups you already administer Access managed centrally through tailnet policy
Limitation noted by Tailscale None specific in the cited material May not suit some multi-user or restricted-command configurations

If you already maintain SSH keys on the host, the traditional route keeps your setup intact. Choose Tailscale SSH only when you want policy-based control instead.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
Independent reader supportYour contribution helps us test, update, and keep practical guides available for everyone.Support on Ko-Fi

Options compared

Scenario What you connect to Requirement Recommended?
Same home network LAN IP and SSH port SSH enabled on the host; permitted account Yes
Away, through a home VPN LAN IP and SSH port VPN server you can reach; tunnel active Yes
Away, through Tailscale Tailnet IP or MagicDNS name Tailscale on both devices; tailnet policy allows access Yes, as a private overlay
Router port forwarding to SSH Public IP and forwarded port Router rule and public exposure of SSH No, not as a first setup. QNAP’s guidance warns against it.

Why it works at home but not from outside

A home router normally blocks inbound connections from the internet. A successful connection on your LAN therefore proves only that the host is reachable locally, not that it is reachable remotely. That is why the remote routes above add a tunnel or overlay rather than a port rule.

Best Value
Synology DS225+ Private Cloud Media Server - Stream, Back Up Photos & Share Files, Intel CPU for Hardware Transcoding (2-Bay Diskless NAS)
  • Your Personal Streaming Server - Build your own Netflix-style media library and stream 4K movies, shows and photos to any device without monthly fees
  • Create Your Own Cloud - Store your entire photo, video and music collection; access from anywhere with fast 282 MB/s transfer speeds
  • Creator-Grade Backup Solution - Protect your irreplaceable content with automated backups to cloud services, external drives and remote NAS
  • Multi-Layered Data Protection - Combine RAID redundancy, automated backups and snapshot technology to prevent data loss from any cause
  • Smart Home Surveillance - Support up to 30 IP cameras with AI detection, instant alerts and secure remote monitoring

Keep remote access private

Forwarding the NAS’s SSH port from your router exposes an SSH service to the open internet, where automated scanners will probe it. QNAP’s guidance says to connect through a VPN before using the NAS’s private address. Tailscale’s documentation makes the same point: limiting SSH to an authorized private network removes public exposure to automated connection attempts. Use a VPN or overlay for remote access, and keep the SSH port private.

Troubleshooting checklist

  • Connection refused or timed out on the LAN: confirm SSH is enabled in the host’s settings, that you are using the correct private IP, and that the port matches the one you configured.
  • Permission denied: confirm the account is allowed to log in remotely. On QNAP QTS 5.2, only administrators can.
  • Works at home but not away: confirm the VPN tunnel or Tailscale connection is active on the remote device before you connect.
  • Tailscale connects but login is rejected: check the tailnet access policy and whether the host uses Tailscale SSH or traditional SSH authentication.
  • Menus differ from these steps: your NAS model, operating system, or software version may have changed the labels. Check the vendor documentation for your exact version.

Vendor menus and features change between releases. QNAP’s external-access article was last modified August 4, 2026, and the Tailscale pages cited here were checked in January 2026. Confirm current labels against the documentation for your model before following the steps exactly.

Product prices and availability are accurate as of the date/time indicated and are subject to change. Any price and availability information displayed on Amazon at the time of purchase will apply.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Leave a Reply

Your email address will not be published. Required fields are marked *

What’s actually slowing this PC down?

Pick the symptom - the matching free tool is one click away.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

More from the Wire

  1. World desk4 min
    How to Spot an AI Voice Scam Before Sending MoneyDon’t rely on how a caller sounds. Pause, call back through a known number, and verify the emergency with another trusted person before sending money.
  2. Mountain View desk4 min
    Google’s SynthID Detector: How to Check AI-Generated Images, Video and AudioGoogle’s SynthID Detector looks for an embedded watermark in supported images, video and audio. Here is what its results do—and do not—show.
  3. Redmond desk20 min
    How to create a link to File or Folder in Windows 11Windows 11 gives you several ways to point to a file or folder without moving or duplicating it. You can create a desktop shortcut,…
Recommended PC Tool
Recommended PC Tool
Crashes, No Sound, or Screen Glitches?Free driver scan
PC Slower Than It Used to Be?Free scan - under a minute

Two free Windows tools

One Free Minute Could Fix That PC

Before you go - each of these free tools takes about a minute and tackles what quietly slows a Windows PC down.

Special offer. View Outbyte info, uninstall instructions, EULA, and Privacy Policy.