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
- Host: GitHub
- URL: https://github.com/aedavelli/go-scp
- Owner: aedavelli
- License: mpl-2.0
- Created: 2020-05-16T05:36:53.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2020-05-17T19:29:40.000Z (about 6 years ago)
- Last Synced: 2024-06-20T16:31:56.835Z (almost 2 years ago)
- Topics: go-scp, recursive-copy, scp
- Language: Go
- Size: 28.3 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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)
}
}
```