![]() Inside of this directory you’ll see: Directory: C:\ProgramData\sshĪt the end of the Windows sshd_config you’ll see: Match Group administratorsĪuthorizedKeysFile _PROGRAMDATA_/ssh/administrators_authorized_keys For Windows, the /etc/ssh directory is:Ĭ:\ProgramData\ssh. Most regular *nix machines put the sshd configuration in /etc/ssh/sshd_config. # Install the VC runtime (recommended for neovim) # or `scoop install nano` if hklj are too powerful. # or `scoop install vim` if Lua is too fast for you # Install git - required for scoop to operate Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope CurrentUser # Allow PowerShell to run RemoteSigned code ![]() If you’re not into neovim, regular vim or nano (doesn’t use vi keys) would also work. The best solution is to install neovim via scoop. Obviously that’s not going to get us very far via ssh so we need a way to edit in the terminal. The 64-bit editor that works in every version of windows and is guaranteed to be installed is notepad.exe. # Install the OpenSSH ServerĪdd-WindowsCapability -Online -Name OpenSSH.Serverģ2-bit versions of windows shipped with a ported version of edit.exe from DOS that would work in a command prompt. ![]() If you’re going to connect to Windows via OpenSSH, I think you’re really best off using PowerShell rather than cmd.exe, as PowerShell can do quite a bit more from the command line that’s impossible with cmd.exe. You need to open a PowerShell Prompt as Administrator OpenSSH Server on Windows is very cool, and very weird…
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |