# README
ssh utils
Usage
package main
import (
"github.com/oldthreefeng/algo/sshutil"
)
func main() {
s := sshutils.New()
// Cmd is exec cmd on host
s.Cmd(host, cmd)
//CopyConfigFile is copy local file or bytes to remote file path
s.CopyConfigFile(host, remoteFilePath , localFilePathOrBytes)
// CopyRemoteFileToLocal is scp remote file to local
s.CopyRemoteFileToLocal(host, localFilePath, remoteFilePath)
}
# Functions
No description provided by the author
CompressZip is compress all file in fileDir , and zip to outputPath like unix zip ./ -r a.zip.
No description provided by the author
No description provided by the author