Jump to content

How to : use scp to append public key from linux(client) to windows (server with openssh running) in C:\PROGRAMDATA\ssh\administrators_authorized_keys


Recommended Posts

Guest ZilchBloke
Posted

I am trying to copy a client key from Linux(Ubuntu) to Windows server as an administrator user. so far i am able to achieve this by using following steps(1-4): > Note: I am using bash in linux and powershell 7.3.4 in windows as an administrator.1. Copy the public key from linux client to windows server: `scp ~/.ssh/public_key.pub windowsUser@windowsMachine:__PROGRAMDATA__/ssh/`2. ssh into windows server and check if there is `administrators_authorized_keys` file present in `C:\PROGRAMDATA\SSH\` If not, Create: `New-Item -Force -Path c:\PROGRAMDATA\ssh\administrators_authori

 

More...

  • Replies 0
  • Created
  • Last Reply

Popular Days

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


×
×
  • Create New...