I’m a little confused: I’ve got two Ubuntu 22 VMs in the same network, one only hosting an Azure Build Agent and the other one is supposed to be the live VM. Both have SSH configured.
Using Azure DevOps, I created a pipeline that uses the “Copy files over SSH” task to copy files from a repo to the live VM. However, that task fails with this error message (this is everything is gives me, even if I turn on “Enable System Diagnostics”):
Error: Failed to connect to remote machine. Verify the SSH service connection details. Failed to connect to remote machine. Verify the SSH service connection details. Error: All configured authentication methods failed..
So then I connected to the BuildAgent VM via SSH, created my a file containing my private key and opened an SSH connection from this VM to the live VM. To my surprise, that works.
Any idea why the manual connection works, but the one created by Azure DevOps fails?