I'm trying to run a script from Teamcity Agent on other environment (mac). I am using script that contains 'ssh administrator@33.333.33.33..' when running the script as administrator on the Teamcity agent environment it works (after I used the publicKey). when running the Teamcity project I'm getting
[Step 1/1] Permission denied (publickey,keyboard-interactive).
[00:18:15][Step 1/1] Process exited with code 255
[00:18:15][Step 1/1] Step run protractor test (Command Line) failed
I've tried also adding the ssh key file to the project as seen here https://confluence.jetbrains.com/display/TCD8/SSH+Keys+Management
I'm still getting the error. I assume that maybe Teamcity Agent uses other user (than Administrator) to run the script. any ideas?