I can authenticate successfully with putty on the server with my private key and passphrase. But when I try to do it with jenkins publish o
putty
private key
Don't do any ssh-keygen. Just enter the pem key details under key field, Add SSH server details: Name, Hostname and Username as ec2-user. Click test connection and it works.