Skip to content

aedavelli/go-scp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

go-scp

Simple SCP Package with Recursive copy support

SCP Protocol Information

How SCP Protocol Works

Example

package main

import (
	"log"
	"os"

	"github.com/aedavelli/go-scp"
)

func main() {
	if len(os.Args) < 2 {
		log.Fatal("Usage: ", os.Args[0], " <path1> <path2> ...")
	}
	c, err := scp.NewDumbClient("username", "password", "server.com:22")

	if err != nil {
		log.Fatal(err)
	}

	c.Quiet = true
	err = c.Send("/tmp", os.Args[1:]...)
	if err != nil {
		log.Fatal(err)
	}
}

About

SCP Package with Recursive copy support

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages