Documentation
¶
Overview ¶
Package sftp provides an SFTP connection layer
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrNoHostKeyVerification = errors.New(
`sftp: no host key verification configured: set "known_hosts" or "host_key", ` +
`or set "insecure_ignore_host_key" to "true" to disable verification (unsafe)`)
ErrNoHostKeyVerification is returned when no host key verification method has been configured. Verifying the host key protects against man-in-the-middle attacks, so it must either be set up (with "known_hosts" or "host_key") or explicitly disabled (with "insecure_ignore_host_key").
Functions ¶
Types ¶
type ConnectionError ¶ added in v0.8.0
type ConnectionError struct {
Source error
}
ConnectionError is returned when a connection occurs while connecting to the SFTP server
func (ConnectionError) Error ¶ added in v0.8.0
func (err ConnectionError) Error() string
Click to show internal directories.
Click to hide internal directories.