We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1a4f113 commit f4d34b4Copy full SHA for f4d34b4
README.md
@@ -1 +1,40 @@
1
-# scp
+# scp
2
+
3
+A Simple `go` SCP client library
4
5
+## Usage
6
7
+```go
8
+import (
9
+ "github.com/dtylman/scp"
10
+ "golang.org/x/crypto/ssh"
11
+)
12
+```
13
14
+## Sending Files
15
16
+Copies `/var/log/messages` to remote `/tmp/lala`:
17
18
19
+var sc* ssh.Client
20
+// establish ssh connection into sc here...
21
+n,err:=scp.CopyTo(sc, "/var/log/messages", "/tmp/lala")
22
+if err==nil{
23
+ fmt.Printf("Sent %v bytes",n)
24
+}
25
26
27
+## Receiving Files
28
29
+Copies remote `/var/log/message` to local `/tmp/lala`:
30
31
32
33
34
+n,err:=scp.CopyFrom(sc, "/var/log/message", "/tmp/lala")
35
36
37
38
39
40
0 commit comments