Debian Codegraph @

example/README.md

raw symbols SCIP
1 ## SCP Example
2
3 ### Compile
4 ```
5 go build
6 ```
7
8 ### Running
9 `example` will use `scp` to copy a remote file locally. Local files created on the working folder with the remote base name.
10
11 Usage: host:port username remotepath
12
13 #### Notes
14
15 Port must be set!
16
17 Password will be prompted for.
18
19
20 ```
21 localhost$ ./example naboo.local:22 root /var/log/lastlog
22 Password: ********
23 Opening tcp to naboo.local:22
24 Establishing ssh session naboo.local:22...
25 Copied 292584 bytes in 327.874073ms
26 ```