https://github.com/txthinking/sshexec
A command-line tool to execute remote command through ssh
https://github.com/txthinking/sshexec
Last synced: 11 months ago
JSON representation
A command-line tool to execute remote command through ssh
- Host: GitHub
- URL: https://github.com/txthinking/sshexec
- Owner: txthinking
- License: gpl-3.0
- Created: 2015-06-05T08:04:49.000Z (almost 11 years ago)
- Default Branch: master
- Last Pushed: 2024-09-25T08:12:23.000Z (over 1 year ago)
- Last Synced: 2025-04-05T00:11:16.014Z (about 1 year ago)
- Language: Go
- Homepage: https://www.txthinking.com
- Size: 1.74 MB
- Stars: 18
- Watchers: 2
- Forks: 4
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
## sshexec
A command-line tool to execute remote command through ssh
### Install via [nami](https://github.com/txthinking/nami)
```
nami install sshexec
```
### Usage
```
NAME:
sshexec - Run command on remote server
USAGE:
sshexec [global options] command [command options] [arguments...]
VERSION:
20230118
AUTHOR:
Cloud
COMMANDS:
help, h Shows a list of commands or help for one command
GLOBAL OPTIONS:
--server value, -s value Server address, like: 1.2.3.4:22
--user value, -u value user
--password value, -p value password
--key value, -k value private key
--command value, -c value command will be run on remote server, ignore upload/download
--upload value upload file to remote server
--download value download file from remote server
--to value dst with upload/download
--help, -h show help (default: false)
--version, -v print the version (default: false)
COPYRIGHT:
https://www.txthinking.com
```
### Example
```
$ sshexec -s 1.2.3.4:22 -u tom -p jerry -c "ls -l"
```