-1

I created a python script, I want to run this script from my machine to multiple clients without installing it in the client. Is there any packages, or library available in python to do this?

2
  • 1
    Possible duplicate of how to run local python script on remote machine Commented Apr 27, 2019 at 10:48
  • You have to have a Python interpreter available on a machine if you want to run a Python program on it. If Python isn't installed on that machine you will have to build and deploy an executable that incorporates your code, the Python interpreter, and any needed libraries. Look at the module pyinstaller. Commented Apr 27, 2019 at 10:50

1 Answer 1

0

You could try the following:-

ssh = paramiko.SSHClient()
ssh.connect(server, username=username, password=password)
ssh_stdin, ssh_stdout, ssh_stderr = ssh.exec_command(cmd_to_execute)

And you can go through this

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.