scp

package
v0.0.0-...-3124197 Latest Latest
Warning

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

Go to latest
Published: Oct 18, 2017 License: BSD-3-Clause, BSD-3-Clause Imports: 9 Imported by: 0

Documentation

Overview

Many thanks to

(1): https://blogs.oracle.com/janp/entry/how_the_scp_protocol_works

and

(2): https://gist.github.com/jedy/3357393 for pointing to (1)

TODO:

  • VErify ctrl message and use its len ???

Index

Constants

View Source
const RSA_PRIVATEKEY_FILE = ".ssh/id_rsa"
View Source
const SCP_COMMAND = "/usr/bin/scp -vf "

Variables

This section is empty.

Functions

This section is empty.

Types

type Data

type Data struct {
	ScpArgs  string
	CacheDir string

	User       string
	Passwd     string
	Host       string
	RemotePath string
	// contains filtered or unexported fields
}

func (*Data) GetFile

func (D *Data) GetFile(src string, dst string) error

func (*Data) Init

func (D *Data) Init() (string, error)

func (*Data) Name

func (D *Data) Name() string

func (*Data) String

func (D *Data) String() string

Jump to

Keyboard shortcuts

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