Thanks for getting in touch! I’m sorry to hear you are encountering issues using a private key in Octopus Server, even though you can successfully use it locally with Putty.
In this case I’m not really sure what the problem could be here. I’m considering there might be issues with how Octopus is reading your key file.
Is your key file a PEM? For example does it look like this when you open it in notepad:
-----BEGIN RSA PRIVATE KEY-----
The next question I have is did you create the private key file in Windows or Mac/Linux? I’m asking this because there might be a problem with how each line is being terminated in your Private key. In the private key example above, at the end of the first line,
... QTt there might be extra invisible characters here. You could try trimming off the ends of each line using notepad.exe
If you’re interested I have marked this conversation as private just in case you would like to generate a pupblic/private key pair (one that you don’t use in your prodction environemnt) that I can test with on my end.
I look forward to hearing from you!