remote-cli-runner (rcr) is a lightweight, cross-platform SSH-based tool that lets you run common network and diagnostic commands (e.g., ping, nslookup, or arbitrary shell commands) on a remote host, while using a simple local CLI.
It works on:
- Linux
- Windows (PowerShell / CMD)
- macOS (optional)
rcr is a single CLI entrypoint:
rcr ping ...
rcr nslookup ...
rcr <any-command> ...Before using rcr, create a configuration file in your home directory.
~/.remote-cli-runner.ini
C:\Users\<YourUser>\.remote-cli-runner.ini
[remote]
host = your.server.com
user = yourusername
key = /home/yourusername/.ssh/id_ed25519
port = 22[remote]
host = server.example.com
user = michael
key = C:\Users\michael\.ssh\rcr
port = 22key must point to a valid SSH private key.
rcr ping 8.8.8.8 -c 4rcr ping 8.8.8.8 -n 4rcr nslookup example.comAny command that is not ping or nslookup is treated as a generic remote command.
rcr uname -a
rcr whoami
rcr ls -la /var/log
rcr systemctl status sshThis allows you to use rcr as a simple SSH-based remote command runner.
Clone the repository:
git clone https://github.com/<yourname>/remote-cli-runner
cd remote-cli-runnerpython3 rcr.py ping 8.8.8.8 -c 4python rcr.py ping 1.1.1.1 -n 4You can also make the script executable and put it in your PATH as rcr.
rcr can be compiled into standalone executables using PyInstaller, so Python is not required on the target machine.
Install PyInstaller:
pip install pyinstallerpyinstaller --onefile rcr.pyOutput:
dist/rcr
pyinstaller --onefile rcr.pyOutput:
dist\rcr.exe
Copy the resulting binary to a directory in your PATH for global usage.
- Support for multiple remote profiles (
--profile prod) - Automatic Windows remote host detection for ping options (
-cvs-n) - Verbose / debug mode
- Parallel execution on multiple hosts
- Additional built-in helpers (traceroute, dig, netstat, etc.)
remote-cli-runner provides:
- A simple, unified CLI (
rcr) for running commands on a remote machine - A clean
.iniconfig file in the user home directory - Cross-platform support (Linux, Windows, macOS)
- Optional standalone binaries via PyInstaller
A minimal tool with maximal usefulness — ideal for network diagnostics, server access, and automation.