Documentation
¶
Overview ¶
Package sshx builds ssh invocations for stored hosts.
Index ¶
- func ConnectArgs(h store.Host) ([]string, error)
- func DialSFTP(ctx context.Context, h store.Host) (*vfs.RemoteFS, error)
- func Exec(args []string) error
- func Options(h store.Host) ([]string, error)
- func Quote(s string) string
- func SFTPArgs(h store.Host) ([]string, error)
- func SplitArgs(s string) ([]string, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConnectArgs ¶
ConnectArgs returns the full argv (excluding "ssh" itself) for an interactive login. If the host has a remote path, the session starts in it.
func DialSFTP ¶
DialSFTP opens an SFTP session to h through the system ssh binary, so it uses the same ~/.ssh/config, agent, keys and jump hosts as connecting.
func Options ¶
Options returns the ssh options for h (port, identity, jump host and extra args), without the destination.
func Quote ¶
Quote quotes s for a POSIX shell. A leading "~/" is left unquoted so the remote shell still expands it.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.