Configuring SSH as a service on Windows Server for Remote Command Executions from another Windows Server/System without Password prompt and/or using public/private keys Authentication

Primarily involves:

Install on the system on which you want to run the commands remotely

  1. Installing CygWin
  2. Within Cygwin, install SSH complete
  3. Then Run “ssh-host-config”
  4. Choose “Should privilege separation be used” yes
  5. Start `net start sshd’

 

Install on system from which you want to do a remote command invocation:

  1. Installing CygWin
  2. Within Cygwin, install SSH complete
  3. ssh-keygen -t rsa -C username@localsystem
  4. Copy the key from /home/username/.ssh/id_rsa.pub
  5. Updated that in /home/username/.ssh/known_hosts
  6. Now ssh username@destinationsystem should simply logon you to the remote system
  7.  

Leave a Reply

Your email address will not be published. Required fields are marked *