I am trying to download a file from a target server for a project. Once I have this file I can gain access to the root however when I try to send the file to my kali machine it doesn't work and says connection refused. I've tried changing my network to not be connected to the victims network but that didn't work either. So I am out of options on what to do. I have included the screenshot of the error i get and am happy to add any necessary screenshots.
Any help would be greatly appreciated as I am on a tight deadline. Thanks in advance.
I have been told i might need to configure the SSH service on the kali machine but i'm not sure how.