Wednesday, July 20, 2022

SSH server on Windows 2016 Server - documentation link dump - fix for vi blank page on Windows

A link dump below:

 
This doc above is only for server 2019 - ours is 2016, so must use the github link below.



https://www.tutorialspoint.com/how-to-install-the-msi-file-using-powershell#

administrators_authorized_keys needs to be created.

in  https://github.com/PowerShell/Win32-OpenSSH/wiki/sshd_config

to add path, the above wiki has some pointers.

How to Edit Files with a Real PowerShell Text Editor (adamtheautomator.com)



 
(
choco install nano -y
worked.

For using vim instead
choco install vim 
 
The open command: start a session - PuTTY Documentation
psftp syntax
open username@host port
like open myusername@myservername 22
 
Use puttygen to convert from id-rsa to ppk, using "Load an existing private key" option,



 
vim c:\programdata\ssh\sshd_config

public key can be appended by 
type id_rsa.pub >> c:\programdata\ssh\administrators_authorized_keys

page becomes blank when page down in vim
did not help, but using pagedown instead of down arrow worked.

recommended using 
powershell -command "Restart-Service sshd -Force"

Putty's tunnels saved in session, so we need to use
to save reg file to export if we want to send a Putty configuration to someone else.
 
Unfortunately, this does not work on some machines, since the registry entries like path etc may be different. They would need to manually recreate the tunnels, I guess.
 


 





No comments:

Post a Comment