SSH into digitalocean server from circleci

Hello. I’m trying to introduce some automation via circleci where it will go into the server made in digitalocean via ssh in order to put in commands for updating said server. I’m not quite sure how to do that. If I start with the straight ssh IP ADDRESS command, it will hold on

Pseudo-terminal will not be allocated because stdin is not a terminal.
The authenticity of host ‘IP ADDRESS (IP ADDRESS)’ can’t be established.

It is supposed to ask if I want to continue connecting and I would answer yes, but that doesn’t appear until after it has failed, so not even adding in yes | to the command will work. I’ve also tried generating an ssh key that I can then add to the list of accepted ssh keys in digitalocean, but since I can’t interact with it, I can’t follow the prompts that follow the ssh-keygen -t rsa -b 4096 -C command. Does anybody have any ideas? I am most certainly stumped.