Skip to content

Commit 1a4f113

Browse files
authored
Create README.md
1 parent fe9b5e9 commit 1a4f113

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed

example/README.md

+26
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
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+
```

0 commit comments

Comments
 (0)