OpenSSH sshd on Windows Subsystem for Linux: Difference between revisions

From NovaOrdis Knowledge Base
Jump to navigation Jump to search
No edit summary
Line 3: Line 3:
* [[OpenSSH_Operations#Subjects|OpenSSH Operations]]
* [[OpenSSH_Operations#Subjects|OpenSSH Operations]]
* [[Windows Subsystem for Linux#Subjects|Windows Subsystem for Linux]]
* [[Windows Subsystem for Linux#Subjects|Windows Subsystem for Linux]]
=Overview=
This article contains the procedure to configure a [[Windows Subsystem for Linux]] sshd to start at boot.
=Procedure=


=Organizatorium=
=Organizatorium=

Revision as of 16:37, 11 July 2017

Internal

Overview

This article contains the procedure to configure a Windows Subsystem for Linux sshd to start at boot.

Procedure

Organizatorium

chroot("/var/run/sshd"): Function not implemented [preauth]


Use privilege separation.


debug1: list_hostkey_types:
No supported key exchange algorithms

Fixed with Sshd Regenerate Server Keys

  • Add the allowed public key in ~/.ssh/authorized_keys
  • Set acceptable permissions:
cd ~
chmod -R go-rwx .ssh


Start at boot.


visudo


More restrictive if necessary

Status

/etc/init.d/ssh status

Start/Stop

/etc/init.d/ssh start|stop