Suppose that I ssh into some sever. Is there any way to write a python script such that I can run it, and it will transfer some file that is on the server, say "abc.json" , back into the local machine that I am on?
I am very new to networking in general, but I am aware that you can use scp in bash to transfer files. However, the only way I know requires a destination IP, which only works for specific cases and not for a more general case where I can ssh from any machine and transfer the files back into that machine.
Sorry if the question is bad or does not make sense, I am very new to networking.