I am currently connected to a windows server. I installed winscp on it. I run the winscp and connect to a linux server. Now on the GUI of the winscp, i clicked the console, and use the scp command. The file on the remote server is C:\xampp\htdocs\android\files\file.txt now I want to transfer it to my linux server. I'm planning to automate this using an application created in python. But the problem is my code is incorrect. To be honest I don't really get it. So please guide me.
Here is what I'm trying to do:
scp C:\xampp\htdocs\android\files\file.txt remote_server_ip_add@linux_ip_add:/home I don't know if this is correct. It's just not working.
The user name of the remote server for example is remote_server. And the user name of the linux server for example is linux_server.
Should it be like this?
scp C:\xampp\htdocs\android\files\file.txt remote_server@linux_server:/home I also got this error:
C: node name or service name not known