Examples
Making ssh connection and run commands
- ssh to a host, su as root, then download root’s file
- work with pytermgui by providing output data of remote executions
- exchange file between hosts
- check disk space utilization
- generate list of ip addresses for blocking
- some notes about sudo
- ssh via proxyCommand, nested ssh with password and interactive sudo su
- ssh via proxyCommand, nested ssh with ssh key and interactive sudo su
- ssh via proxyCommand, nested ssh with interactive ssh and interactive sudo su
- Install or upgrade python packages
- $.careful() usage
- talk to smtp server to send mails
Long Running Processes
Tunnel and Reverse Tunnel
Working with Threads
- py_cui with threads
- connecting to hosts in threads,usage scenario 1
- connecting to hosts in threads,usage scenario 2
- connecting to hosts in threads,usage scenario 3
- connecting to hosts in threads,usage scenario 4
Need an Example?
If you need an example or you’d like to share your examples. You are welcome to create an issue for it.
Last Updated: 2026-07-25 16:59:40
Table of contents
- SSHScript v3.1 Documentation
- Accounts (legacy URL)
- Checking the syncing status of two MySQL servers
- Getting Started with SSHScript
- Page not found
- Q: What can it do that Netmiko doesn’t do? (origin)
- SSHScript Documentation
- SSHScript Documents
- SSHScript v2.0 CLI(Draft)
- SSHScript v2.0 Commands Execution and Console
- SSHScript v2.0 Console of sudo and su
- SSHScript v2.0 Getting Started
- SSHScript v2.0 Interactive Commands and Foreground Commands
- SSHScript v2.0 Make Connections
- SSHScript v2.0 Recipes
- SSHScript v2.0 Reference Guide
- SSHScript v2.0 Stdout, Stderr and Exitcode
- SSHScript v2.0 Threading Support
- SSHScript v2.0 Upload and Download Files
- SSHScript v2.0.2 Release Notes
- SSHScript v3.0 Interactive and Foreground Commands
- SSHScript v3.0 Reference Guide
- SSHScript v3.0.0 Release Notes
- SSHScript v3.1
- SSHScript vs. Ansible
- 用 Python 作系統自動化