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
Make sure you are able to repro it on the latest version
Search the existing issues.
Steps to reproduce
Initialise the OpenSSH client on new and up to date instance of Windows 10 or later. This can be done by establishing a SSH connection for the first time.
Navigate to the user profile folder look for the .ssh folder.
Notice that the folder is visible.
Expected behavior
The expected behaviour is for the .ssh folder to be created with the hidden bit.
Actual behavior
The .ssh folder is created without the hidden bit set however. This is confusing for any users coming from a Unix-Like environment, due to the period in front of a name indicates a hidden file or directory.
This behaviour may not align with expectations of users who are coming from Unix-like environments where such files and folders are automatically hidden.
I worked around this issue by manually applying the +s and +h bits to the .ssh directory in the user profile folder. As well as using a script to automate the process, due to the lack of automated handling in the OpenSSH Client to handle this situation.
My recommendation is for the team behind implementing the OpenSSH Client in Windows at Microsoft Corporation, to develop automatic handling of the system and hidden bits for .ssh folder in the client so its applied at creation.
Which other Unix applications ported to Windows hide their dot file/folder by setting the hidden bit? Have you ever seen that being done (.minecraft, .git, .svn, etc.)?
I suspect hiding the folder might confuse many users. After all, .ssh contains user-serviceable parts, such as authorized_keys and config.
Prerequisites
Steps to reproduce
Expected behavior
The expected behaviour is for the .ssh folder to be created with the hidden bit.
Actual behavior
The .ssh folder is created without the hidden bit set however. This is confusing for any users coming from a Unix-Like environment, due to the period in front of a name indicates a hidden file or directory.
This behaviour may not align with expectations of users who are coming from Unix-like environments where such files and folders are automatically hidden.
Error details
Not applicable with this issue.
Environment data
Version
The version of OpenSSH distributed in version 19045.5737 of Windows 10
Visuals
The text was updated successfully, but these errors were encountered: