An open API service indexing awesome lists of open source software.

https://github.com/aedavelli/go-scp

SCP Package with Recursive copy support
https://github.com/aedavelli/go-scp

go-scp recursive-copy scp

Last synced: 5 months ago
JSON representation

SCP Package with Recursive copy support

Awesome Lists containing this project

README

          

# go-scp
Simple SCP Package with Recursive copy support

## SCP Protocol Information
[How SCP Protocol Works](/SCP.md)

## Example
```go
package main

import (
"log"
"os"

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

func main() {
if len(os.Args) < 2 {
log.Fatal("Usage: ", os.Args[0], " ...")
}
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)
}
}
```