I cannot reproduce this issue. These are the steps I used to attempt to reproduce:
1. Installed Ubuntu 18.04 from the Microsoft Store. 2. Created a new user on launch. 3. Confirmed openssh-server was installed. 4. Confirmed no .ssh folder existed in ~. 5. Ran $ ssh-keygen -t rsa -b 4096 to create keys. 6. Reviewed permissions of the resulting .ssh folder, which are 700, private key 600, and public key 644. I suspect that something else may have modified the permissions on ~/.ssh. We do not modify permissions on openssh for WSL anywhere in the image build or Windows unpacking process, it will have the default permissions from the openssh-server package. ** Attachment added: "Console log of attempt to reproduce" https://bugs.launchpad.net/ubuntu/+source/openssh/+bug/1890892/+attachment/5400546/+files/duplication-log.txt -- You received this bug notification because you are a member of Ubuntu Touch seeded packages, which is subscribed to openssh in Ubuntu. https://bugs.launchpad.net/bugs/1890892 Title: WSL openssh-server incorrect permissions .ssh Status in openssh package in Ubuntu: Incomplete Bug description: Using Ubuntu Windows Subsystem for Linux (WSL) $ uname -srvmpio Linux 4.4.0-19041-Microsoft #1-Microsoft Fri Dec 06 14:06:00 PST 2019 x86_64 x86_64 x86_64 GNU/Linux (Prestep required to add port for access to windows firewall) .ssh directory was set as 777 when 755 (minimum) is required for operation of authentication keys when trying to ssh -i /path-to-key/key user@domain. Generally poor housekeeping. <3 ProblemType: Bug DistroRelease: Ubuntu 18.04 Package: openssh-server 1:7.6p1-4ubuntu0.3 ProcVersionSignature: Microsoft 4.4.0-19041.1-Microsoft 4.4.35 Uname: Linux 4.4.0-19041-Microsoft x86_64 ApportVersion: 2.20.9-0ubuntu7.6 Architecture: amd64 Date: Sat Aug 8 08:44:02 2020 ProcEnviron: TERM=xterm-256color PATH=(custom, no user) LANG=C.UTF-8 SHELL=/bin/bash SSHDConfig: Error: command ['pkexec', '/usr/sbin/sshd', '-T'] failed with exit code 127: Error getting authority: Error initializing authority: Could not connect: No such file or directory SourcePackage: openssh UpgradeStatus: No upgrade log present (probably fresh install) To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/openssh/+bug/1890892/+subscriptions -- Mailing list: https://launchpad.net/~touch-packages Post to : [email protected] Unsubscribe : https://launchpad.net/~touch-packages More help : https://help.launchpad.net/ListHelp

