package
1.12.0-alpha20250213
Repository: https://github.com/hashicorp/terraform.git
Documentation: pkg.go.dev
# Functions
BastionConnectFunc is a convenience method for returning a function that connects to a host over a bastion connection.
ConnectFunc is a convenience method for returning a function that just uses net.Dial to communicate with the remote end that is suitable for use with the SSH communicator configuration.
New creates a new communicator implementation over SSH.
An implementation of ssh.KeyboardInteractiveChallenge that simply sends back the password for all questions.
RegisterDialerType register schemes used by `proxy.FromURL`.
# Constants
DefaultPort is used if there is no port given.
DefaultShebang is added at the top of a SSH script file.
DefaultTimeout is used if there is no timeout given.
DefaultUnixScriptPath is used as the path to copy the file to for remote execution on unix if not provided otherwise.
DefaultUser is used if there is no user given.
DefaultWindowsScriptPath is used as the path to copy the file to for remote execution on windows if not provided otherwise.
TargetPlatformUnix used for cleaner code, and is used if no target platform has been specified.
TargetPlatformWindows used for cleaner code.
# Structs
Communicator represents the SSH communicator.