mirror of
https://github.com/not-kennethreitz/wsl-guide.git
synced 2026-06-05 07:06:13 +00:00
Adding entry: SSH into wsl
This commit is contained in:
+14
-1
@@ -20,4 +20,17 @@ You may notice that every time you run ``sudo something``, your system complains
|
||||
127.0.0.1 nova
|
||||
...
|
||||
|
||||
Here, my machine is called 'nova'.
|
||||
Here, my machine is called 'nova'.
|
||||
|
||||
Connecting to the Linux subsystem via SSH
|
||||
-----------------------------------------
|
||||
|
||||
In order to be able to ssh into your Linux subsystem instance follow the steps outlined by Master Azazel in this `thread: <https://superuser.com/a/1114162>`_
|
||||
|
||||
1. ``sudo apt-get remove openssh-server``
|
||||
2. ``sudo apt-get install openssh-server``
|
||||
3. ``sudo nano /etc/ssh/sshd_config`` and disallow root login by setting ``PermitRootLogin no``
|
||||
4. Then add a line beneath it that says: ``AllowUsers yourusername`` and make sure ``PasswordAuthentication`` is set to ``yes`` if you want to login using a password.
|
||||
5. Disable privilege separation by adding/modifying : ``UsePrivilegeSeparation no``
|
||||
6. ``sudo service ssh --full-restart``
|
||||
7. Connect to your Linux subsystem from Windows using a ssh client like PuTTY.
|
||||
|
||||
Reference in New Issue
Block a user