I opened power shell with Admin rights.
Then followed this to Install OpenSSH using PowerShell
The next step is to Start and configure OpenSSH Server
Now run the following command to get the user name
I got MYMACHINENAME\AdminUser. Here MYMACHINENAME is the device or machine name of my windows 10 ...
Maybe you could add the computer name to the local host file: C:\Windows\System32\drivers\etc\hosts
That should make it resolve the computername for you.
More info here:
Vim is normally distributed as a 32-bit application, which means it runs under the WoW64 emulator, where C:\Windows\System32 is mapped to C:\Windows\SysWOW64, and the original System32 folder becomes C:\Windows\Sysnative. Since Microsoft currently installs OpenSSH only to the 64-bit System32 folder, it becomes invisible to 32-bit applications by default.
There is ForceCommand keyword in sshd_config:
Forces the execution of the command specified by ForceCommand, ignoring any command supplied by the client and ~/.ssh/rc if present. The command is invoked by using the user's login shell with the -c option. This applies to shell, command, or subsystem execution. It is most useful inside a Match ...