Help Needed with SSH Key Authentication on Windows for Jenkins

Hi everyone,

I’m new to Jenkins and I’m having trouble with SSH key authentication on a Windows system. Here’s what I’ve done so far:

  1. Generated an SSH key on my local Windows system.
  2. Copied the public key to the target machine.
  3. Set the appropriate permissions on the target machine.
  4. Tested the connection using the command:
    ssh -i $env:USERPROFILE\.ssh\id_rsa Admin@<ip-address>