Why using eval ssh-agent -s ssh-add ~/.ssh/id_rsa to SSH into a Debian droplet created using Terraform CLI?
I developed a bash script which uses Terraform CLI to deploy a Debian 10 droplet. I noticed that to SSH into a server like that using my SSH private key, I have to type in the following commands, as in this thread https://www.digitalocean.com/community/questions/permission-denied-after-creating-droplet-using-ssh-keys
eval ssh-agent -s ssh-add ~/.ssh/id_rsa
I tried creating the same Debian 10 droplet from Digitalocean GUI and in this case I did not have to type in the
Why this difference?
Are there some flags or options to set to avoid using the previous