TASK [users : Add SSH keys] fails

Hi, I’m getting this error that is driving me nuts… I don’t know how to deal with it

TASK [users : Add SSH keys] ******************************************************************************************************
ok: [juanmaguitar.com] => (item=[{u'name': u'web', u'groups': [u'www-data']}, u'ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDClInyJc21hhVrU7********************************************************************************************************************************************+y1s1bAKR+fZyzKM7P8B71iZxogZ2P+9qEdSCUcjgXvM3zAYRAY5dpyRridBSTAE+Y5U4NbEo2Bp8ZCsGqfoWmjc6p5s6sy8l+7qktWE28IAhfJLNcefXR3 juanma.garrido@gmail.com'])
---------------------------------------------------
Failed to connect to github.com at port 443: [Errno -3] Temporary failure in
name resolution
failed: [juanmaguitar.com] (item=[{u'name': u'web', u'groups': [u'www-data']}, u'https://github.com/juanmaguitar.keys']) => {"changed": false, "item": [{"groups": ["www-data"], "name": "web"}, "https://github.com/juanmaguitar.keys"]}
---------------------------------------------------
ok: [juanmaguitar.com] => (item=[{u'name': u'root', u'groups': [u'sudo']}, u'ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDClInyJc21hhVrU7********************************************************************************************************************************************+y1s1bAKR+fZyzKM7P8B71iZxogZ2P+9qEdSCUcjgXvM3zAYRAY5dpyRridBSTAE+Y5U4NbEo2Bp8ZCsGqfoWmjc6p5s6sy8l+7qktWE28IAhfJLNcefXR3 juanma.garrido@gmail.com'])
---------------------------------------------------
Failed to connect to github.com at port 443: [Errno -3] Temporary failure in
name resolution
failed: [juanmaguitar.com] (item=[{u'name': u'root', u'groups': [u'sudo']}, u'https://github.com/juanmaguitar.keys']) => {"changed": false, "item": [{"groups": ["sudo"], "name": "root"}, "https://github.com/juanmaguitar.keys"]}
	to retry, use: --limit @/Users/juanma/PROJECTS/2019/WORDPRESS/juanmaguitar.com/trellis/server.retry

I can connect properly via ssh to my server in digital ocean (without password) and also to github

⬢  trellis  master ⦿ ssh -T -p 443 git@ssh.github.com
Hi juanmaguitar! You've successfully authenticated, but GitHub does not provide shell access.

Any idea what the problem can be?

Thanks in advance!

  • JuanMa

The thing was I couldn’t reach github from my server in Digital Oceran
I finally solved this with this → https://meta.discourse.org/t/problems-with-digital-ocean-dns-lookups/60025

This topic was automatically closed after 42 days. New replies are no longer allowed.