MicrosoftDocs / terminal

Creative Commons Attribution 4.0 International
470 stars 177 forks source link

Creating a config file gives file name is not valid on Windows 11 #663

Closed thadguidry closed 1 year ago

thadguidry commented 1 year ago

I used VSCode to edit a new file with 1 line: ServerAliveInterval 600

Now when I tried to File - Save As and going to my path of C:\Users\thadg\.ssh and trying to save with filename config and Save as type: All Files then I get the error:

config The file name is not valid.

image

I do not think the learn guide is providing enough information on how to easily create and edit the config file to manage the ssh client or server on Windows 11.


Document Details

Do not edit this section. It is required for learn.microsoft.com ➟ GitHub issue linking.

tgauth commented 1 year ago

@thadguidry can you try using "No Extension" as the Save as type instead of "All Files"?

zadjii-msft commented 1 year ago

That totally works in a local test. If anything, that could be added to https://learn.microsoft.com/en-us/windows-server/administration/openssh/openssh_server_configuration. I'll add a link to that doc to the Terminal docs.