HTB Academy - Linux Privilege Escalation - logrotate(problem with git cloning)

anyone knows why git clone https://github.com/whotwagner/logrotten.git response with fatal: unable to access 'https://github.com/whotwagner/logrotten.git/': Could not resolve host: github.com?.

I found out the git clone is only fail when I was on ssh

please let me know how to solve this problem, I’ve been stuck on this for days

You can use scp command to transfer files from your local machine.
How to use

ok thx