modulepackage
1.0.3
Repository: https://github.com/sophisticasean/easyssh.git
Documentation: pkg.go.dev
# README
easyssh
Forked for Go 1.10+ support
Description
Package easyssh provides a simple implementation of some SSH protocol features in Go. You can simply run command on remote server or upload a file even simple than native console SSH client. Do not need to think about Dials, sessions, defers and public keys...Let easyssh will be think about it!
Scp
Scp support single file or a directory.
sshconfig := &easyssh.SSHConfig{...}
sshconfig.Scp(localpath, remotepath)
ScpM support copy multiple files to multiple destination on remote simultaneously.
sshconfig := &easyssh.SSHConfig{...}
sshconfig.ScpM(pathmapping)
Install
go get github.com/SophisticaSean/easyssh
So easy to use
Run a command on remote server and get STDOUT output
Run a command on remote server and get STDOUT output line by line
# Packages
No description provided by the author
# Functions
No description provided by the author
No description provided by the author
No description provided by the author
https://studygolang.com/articles/4004 <- run shell command and read output line by line https://studygolang.com/articles/7767 <- run command without known args.
No description provided by the author
No description provided by the author
No description provided by the author
Tar pack the targetPath and put tarball to tgzPath, targetPath and tgzPath should both the absolute path.
UnTar unpack the tarball specified by tgzPath and extract it to the path specified by targetPath.