Search code examples
pythonlinuxsshputtyplink

run local python script from remote linux machine over ssh


I'm trying to run a python script on a remote linux machine accessed by ssh(putty). I want to change/access directory to the windows directory and run a program which converts files on the server to csv and saves them to the server.

Is it possible to run the program without moving the files from remote to local, run conversion, move local to remote?

I am not the root user and can't install anything on the linux machine. My Windows is 64bit and the linux machine is 64bit Ubuntu. Any suggestions?


Solution

  • I found a way to do what I wanted. Doing what I initially wanted requires me to transfer the files from the local machine to the remote machine then running the script and transferring it back. Ultimately it's a function of how fast my internet connection is. Since my local connection isn't that strong, I realized that my initial thoughts were flawed. Eventually, I just uploaded my data to the remote machine and run the script there. It was the fastest solution