File: README.md

package info (click to toggle)
golang-github-dtylman-scp 0.0~git20181017.f3000a3-3
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 92 kB
  • sloc: makefile: 3
file content (26 lines) | stat: -rw-r--r-- 481 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
## SCP Example

### Compile 
```
go build
```

### Running
`example` will use `scp` to copy a remote file locally. Local files created on the working folder with the remote base name.

Usage: host:port username remotepath

#### Notes

Port must be set!

Password will be prompted for.


```
localhost$ ./example naboo.local:22 root /var/log/lastlog
Password: ********
Opening tcp to naboo.local:22
Establishing ssh session naboo.local:22...
Copied 292584 bytes in 327.874073ms
```