gossh

command module
v1.0.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 6, 2017 License: GPL-3.0 Imports: 11 Imported by: 0

README

gossh

A ssh client tool written in Go

Provide ssh and scp function without interactive input

Usage

Usage of gossh:
  -c string
        scp file to copy
  -cd string
        cd to somewhere first
  -l string
        list file of hosts
  -p string
        password
  -port string
        ssh port (default "22")
  -t int
        timeout for a host in second (default 10)
  -u string
        user name
  -v    show version.

Examples: 
   ./gossh ip command
   echo date | ./gossh ip
   ./gossh -l ip.list command

Use as scp
  ./gossh -c srcfile host targetfile
  ./gossh -l ip.list -c srcfile targetfile

Environment variables:
  USER,PASS,PORT,HOST

Flag specify and Environment set the global user and pass

ip.list is a filename and can specify any file

Format exmaple:
ip user
ip
ip  user  pass


If omit user or pass, using global setting (for the first entry)
For others entries ( using previous line's user and password )

Delimited by whitespace(or many continue whitespace)
It can specify different password for every ip(or domain name)

end.

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL