You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
PS C:\Users\XXXX>ssh qiuyanjun@XXXX -p 2233
qiuyanjun@XXXX's password:
Welcome to Ubuntu 20.04 LTS (GNU/Linux 5.10.16.3-microsoft-standard-WSL2 x86_64)
* Documentation: https://help.ubuntu.com
* Management: https://landscape.canonical.com
* Support: https://ubuntu.com/advantage
System information as of Sun Sep 4 14:38:18 CST 2022
System load: 0.0 Processes: 10
Usage of /: 12.5% of 250.98GB Users logged in: 0
Memory usage: 1% IPv4 address for eth0: 172.28.30.162
Swap usage: 0%
41 updates can be applied immediately.
8 of these updates are standard security updates.
To see these additional updates run: apt list --upgradable
New release '22.04.1 LTS' available.
Run 'do-release-upgrade' to upgrade to it.
Last login: Sun Sep 4 14:24:12 2022 from 172.28.16.1
(base) ➜ ~ nvidia-smi
zsh: command not found: nvidia-smi
Expected Behavior
Should successfully find the nvidia-smi after login via SSH! like (login via Windows Terminal):
(base) ➜ ~ nvidia-smi
Sun Sep 4 14:27:27 2022
+-----------------------------------------------------------------------------+
| NVIDIA-SMI 515.65.01 Driver Version: 516.94 CUDA Version: 11.7 ||-------------------------------+----------------------+----------------------+
| GPU Name Persistence-M| Bus-Id Disp.A | Volatile Uncorr. ECC || Fan Temp Perf Pwr:Usage/Cap| Memory-Usage | GPU-Util Compute M. |||| MIG M. ||===============================+======================+======================|| 0 NVIDIA GeForce ... On | 00000000:01:00.0 On | N/A || N/A 41C P8 13W / N/A | 1690MiB / 16384MiB | 0% Default |||| N/A |
+-------------------------------+----------------------+----------------------+
+-----------------------------------------------------------------------------+
| Processes: || GPU GI CI PID Type Process name GPU Memory || ID ID Usage ||=============================================================================|| No running processes found |
+-----------------------------------------------------------------------------+
Actual Behavior
Error: command not found: nvidia-smi
(base) ➜ ~ nvidia-smi
zsh: command not found: nvidia-smi
Diagnostic Logs
No response
The text was updated successfully, but these errors were encountered:
I fixed this error by add /usr/lib/wsl/lib into PATH, the /usr/lib/wsl/lib can be found but it's path does not appear in PATH env after login via SSH from local or remote device (e.g another Mac PC).
Version
Microsoft Windows [版本 10.0.22000.318]
WSL Version
Kernel Version
5.10.16
Distro Version
Ubuntu 20.04
Other Software
SSH
Repro Steps
Expected Behavior
Should successfully find the
nvidia-smi
after login via SSH! like (login viaWindows Terminal
):Actual Behavior
Error: command not found: nvidia-smi
Diagnostic Logs
No response
The text was updated successfully, but these errors were encountered: