Skip to content
forked from txthinking/sshexec

A command-line tool to execute remote command through ssh

License

Notifications You must be signed in to change notification settings

go-proj/sshexec

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

sshexec

A command-line tool to execute remote command through ssh

Install

$ go get github.com/txthinking/sshexec/cli/sshexec

Usage

$ sshexec -h
NAME:
   sshexec - Run command on remote server

USAGE:
   sshexec [global options] command [command options] [arguments...]

VERSION:
   1.0.9

AUTHOR:
   Cloud <[email protected]>

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      SSH user
   --password value, -p value  SSH password
   --command value, -c value   command will be run on remote server
   --help, -h                  show help
   --version, -v               print the version

Example

$ sshexec -s 1.2.3.4:22 -u tx -p mypassword -c "ls -l" -c "echo hello" -c "echo world"

About

A command-line tool to execute remote command through ssh

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Go 100.0%