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

anyone knows why git clone response with fatal: unable to access '': Could not resolve host:

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