example

command
v0.0.0-...-a7e7586 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 28, 2021 License: MIT Imports: 9 Imported by: 0

README

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

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL