A link dump below:
This doc above is only for server 2019 - ours is 2016, so must use the github link below.
administrators_authorized_keys needs to be created.
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.
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
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_keyspage 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