Connection to created Droplet via SSH by Github Actions runner.
ssh-keygen -t rsa -f ~/.ssh/KEY_NAME -P ""
doctl compute ssh-key create KEY --public-key "CONTENT OF KEY_NAME.pub"
doctl compute droplet create --image ubuntu-20-04-x64 --size s-1vcpu-1gb --region fra1 DROPLET_NAME --ssh-keys FINGERPRINT --wait
ssh -vvv -i ~/.ssh/KEY_NAME root@DROPLET_IP
Tested on Windows local machine using
doctl.exe runned from
cmd - works!
Tested on Docker (installed on Windows) based on Linux image using
doctl script - works!
Tested on Github Actions runner based on ubuntu-latest using
digitalocean/action-doctl script - doesn’t work!
Received message is:
connect to host ADDRESS_IP port 22: Connection refused .
So the steps are correct, so why does this not work for Github Actions?