Rancher CLI SSH Doesnt seem to work (Permission denied publickey)

I created a host using the rancher UI and am now trying to ssh into the host to debug an issue. Using the rancher CLI I get the error Permission denied (publickey) as if rancher cli is not using the correct ssh key.

Here is the verbose output from rancher ssh 1h1 -v: https://pastebin.com/jffVbu22

I think the offending line might be:

Authenticating to 52.xx.xx.xx:22 as 'my_user'

It should probably be using the ubuntu user and not my local username.

Followup: the user is the issue. I manually extracted the ssh key from the machine config and tried to ssh using the ubuntu user, and everything worked.