sshutil

package
v0.6.3 Latest Latest
Warning

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

Go to latest
Published: Mar 12, 2024 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Connect

func Connect(u *url.URL) (*ssh.Client, error)

Connect opens an SSH connection. Connect expects a URL in the format 'ssh[-scheme]://[user@[:identity]]alias[:port][/path]'.

Connect will use ~/.ssh/config to resolve the alias and any unspecified settings. The user defaults to the current user and the port defaults to 22, if they are not specified directly and are not specified in ~/.ssh/config.

Types

This section is empty.

Jump to

Keyboard shortcuts

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