You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

求助:如何实现NoMachine Web客户端自动登录(无需手动输入访问凭证)

求助:如何实现NoMachine Web客户端自动登录(无需手动输入访问凭证)

Hey there! I’ve dealt with this exact frustration before—typing in your username and password every time you launch the NoMachine Web client is such a tedious hassle. Let me walk you through the step-by-step fixes that actually worked for me, since it sounds like you might have missed some key details when editing those config files.

Server-side Configuration (server.cfg)

First, let’s make sure the server allows passwordless/auto-login:

  • Locate your server.cfg file (usually in /usr/NX/etc on Linux, or C:\Program Files (x86)\NoMachine\etc on Windows)
  • Find the line EnablePasswordless 0 and change it to EnablePasswordless 1 — this is the core switch to allow automatic authentication
  • Double-check the AuthenticationMethod line; it should include password (e.g., AuthenticationMethod password,publickey) — this ensures password-based auth is enabled
  • Save the file, then restart the NoMachine server service:
    • On Linux: Run sudo systemctl restart nxserver
    • On Windows: Open Services, find "NoMachine Server", right-click and select "Restart"

Client-side Default Config (default.nxs)

This is often the missing piece if server-side changes alone don’t work:

  • Navigate to the NoMachine config directory for your user:
    • Linux: ~/.nx/config
    • Windows: C:\Users\<YourUsername>\.nx\config
  • Open the default.nxs file with a text editor
  • Look for the <authentication> section, and update it to include your credentials and enable saved passwords:
<authentication>
    <auth-method>password</auth-method>
    <username>your-actual-username</username>
    <password>your-actual-password</password>
    <save-password>1</save-password>
</authentication>
  • Note: If your password has special characters (like &, <, >) on Windows, you’ll need to escape them (e.g., & becomes &amp;)
  • Save the file, and ensure permissions are locked down (on Linux, run chmod 600 ~/.nx/config/default.nxs to prevent others from accessing your saved password)

Web Client Specific Config (web.cfg)

Don’t forget to tweak the web client settings too:

  • Open web.cfg (same directory as server.cfg)
  • Find WebClientAutoLogin 0 and change it to WebClientAutoLogin 1 — this tells the web interface to use saved credentials automatically
  • Restart the NoMachine Web service:
    • Linux: sudo systemctl restart nxwebplayer
    • Windows: Restart the "NoMachine Web Player" service

Troubleshooting Tips

If it’s still not working:

  • Make sure you’re running the latest version of NoMachine — older releases might have bugs that break auto-login
  • Check the server logs ( /usr/NX/var/log/nxserver.log on Linux, or the logs folder in your NoMachine installation on Windows) for error messages; common issues include incorrect file permissions or typos in config lines
  • Test with a simple password first (no special characters) to rule out escaping problems

备注:内容来源于stack exchange,提问作者charon

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.04.22 15:03:06