It is possible using ssh. Python accepts hyphen(-) as argument to execute the standard input,
cat hello.py | ssh [email protected] python -
Run python –help for more info.
More Related Contents:
- How to scp in Python?
- How to copy a file to a remote server in Python using SCP or SSH?
- Paramiko “Unknown Server”
- Is there a simple way to get rid of junk values that come when you SSH using Python’s Paramiko library and fetch output from CLI of a remote machine?
- Some Unix commands fail with ” not found”, when executed using Python Paramiko exec_command
- Execute multiple commands in Paramiko so that commands are affected by their predecessors
- Seeing escape characters when pressing the arrow keys in python shell
- Nested SSH using Python Paramiko
- Running interactive commands in Paramiko
- Executing command using Paramiko exec_command on device is not working
- Reading file opened with Python Paramiko SFTPClient.open method is slow
- How to ssh connect through Python Paramiko with ppk public key
- Paramiko’s SSHClient with SFTP
- Get output from a Paramiko SSH exec_command continuously
- Matplotlib: display plot on a remote machine
- How to list all the folders and files in the directory after connecting through SFTP in Python
- Paramiko with continuous stdout
- How to execute a process remotely using python
- SSH key generated by ssh-keygen is not recognized by Paramiko: “not a valid RSA private key file”
- Fetching the output of a command executed through os.system() command [duplicate]
- Execute command and wait for it to finish with Python Paramiko
- Implement an interactive shell over ssh in Python using Paramiko?
- Nested SSH session with Paramiko
- How to run sudo with Paramiko? (Python)
- Recursive directory download with Paramiko?
- How to create a SSH tunnel using Python and Paramiko?
- “Failed to load HostKeys” warning while connecting to SFTP server with pysftp
- How do I start up remote debugging with PyCharm?
- List files on SFTP server matching wildcard in Python using Paramiko
- python paramiko ssh