求助:如何实现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.cfgfile (usually in/usr/NX/etcon Linux, orC:\Program Files (x86)\NoMachine\etcon Windows) - Find the line
EnablePasswordless 0and change it toEnablePasswordless 1— this is the core switch to allow automatic authentication - Double-check the
AuthenticationMethodline; it should includepassword(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"
- On Linux: Run
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
- Linux:
- Open the
default.nxsfile 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&) - Save the file, and ensure permissions are locked down (on Linux, run
chmod 600 ~/.nx/config/default.nxsto 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 asserver.cfg) - Find
WebClientAutoLogin 0and change it toWebClientAutoLogin 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
- Linux:
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.logon 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
相关产品推荐
相关产品推荐

