
- Xshell the ssh server rejected your password how to#
- Xshell the ssh server rejected your password password#
(optional) In order to view GPU status using watch and nvidia-smi.exe in Windows, create a new session in Xshell, whose name is "WSL" and IP is 127.0.0.1.
Xshell the ssh server rejected your password password#
(optional) To use password authentication, run sudo nano /etc/ssh/sshd_config, set passwordAuthentication to yes and run sudo service ssh restart.If configured properly, the ssh server should now automatically start in the background when Windows starts.Run the command sudo visudo and add this line to the end of the file: Copy the shortcut to the Startup folderįinally, you will need to configure the ssh server to start without requiring password. Open start menu, type run (or hit ⊞ Win+ R ).mv sshd.vbs /mnt/c/Users/YourUserName/Documents. Create a shortcut for this file and move it to a more accessible location, e.g.WinScriptHost.Run Chr(34) & "sshd.bat" & Chr(34), 0 Set WinScriptHost = CreateObject("WScript.Shell") Add the following code, making sure to put in your actual user name:.Make sure to match your username! Take note of this location for the next step as in Windows language this corresponds to C:\Users\YourUserName\DocumentsĬreate a sshd.vbs file in the same directory and edit it with the following commands: mv sshd.bat /mnt/c/Users/YourUserName/Documents. Save the file and move it to a more accessible location, e.g.Add the following code: C:\Windows\System32\bash.exe -c "sudo /etc/init.d/ssh start".Follow the next steps which will create scripts that start the ssh server automatically:Ĭreate a sshd.bat file and edit it with the following commands:.With this setup, the ssh server must be turned on every time you run Bash on Ubuntu on Windows, as by default it is off.Uninstall and reinstall the ssh server using the following commands:.
Xshell the ssh server rejected your password how to#
Below are instructions on how to set up the ssh server to run automatically at boot.

Microsoft partnered with Canonical to create Bash on Ubuntu on Windows, running through a technology called the Windows Subsystem for Linux. I make no promises about other distributions, but direct anyone else to an older Gist which apparently works for 16.04LTS. Forked from the gist How to automatically start ssh server on boot on Windows Subsystem for Linux How to automatically start ssh server on boot on Windows Subsystem for Linux
