NASutils Knowledge BaseUnofficialPolski

How do I connect to a QNAP over SSH?

Turn SSH on in Control Panel, then connect with PuTTY or the ssh command using an administrator account. On an account other than admin, sudo -i gives you root rights.

Topic: System and sign-in

  1. On the NAS open Control Panel → Network & File Services → Telnet / SSH. Select Allow SSH connection, check Port number (22 by default) and press Apply. Leave Telnet off.
  2. Press Edit Access Permission and leave only the accounts that should connect. Only administrators can sign in over SSH.
  3. On Windows start PuTTY, enter the NAS's address in Host Name, choose SSH and the same port, and press Open. Windows 10 and 11 also have ssh in the command prompt. On macOS and Linux:
    ssh your-account@NAS-address

    For another port add -p and its number.

  4. The first time, the program asks about the server key's fingerprint. Compare it with the NAS's key read some other way. Without a comparison, accept it only on your own home network.
  5. Type the password. Nothing shows while you type, and the cursor does not move.
  6. On an account other than admin, type sudo -i and the password of that same account.
  7. If the Console Management menu appears after you sign in as admin, type Q, then Y. You are left in the ordinary shell.

Check that it worked

Propose a change

Type id -u. The answer 0 means root rights. exit ends the session.

What not to do

Propose a change

  • VPN
    An encrypted connection that joins a device to another network.
    Do not forward the SSH port from the internet to the NAS. If you need SSH away from home, connect through a VPN first.
  • Do not turn the admin account back on just for SSH. An administrator account and sudo -i are enough.
  • Do not paste commands you do not understand. As root you can delete data and settings without any question asked.
  • Turn SSH off when you do not use it.
QuTS hero
QNAP's NAS system on ZFS.

Checked: 25 November 2026, QTS 6.1.0.3656 (beta) and QuTS hero h6.1.0.3656 (beta).

All questions