modulepackage
0.0.0-20170824174625-f7b48647feef
Repository: https://github.com/tmc/scp.git
Documentation: pkg.go.dev
# README
scp
import "github.com/tmc/scp"
Package scp provides a simple interface to copying files over a go.crypto/ssh session.
func Copy
func Copy(size int64, mode os.FileMode, fileName string, contents io.Reader, destinationPath string, session *ssh.Session) error
func CopyPath
func CopyPath(filePath, destinationPath string, session *ssh.Session) error