golang-ssh-client

command module
v0.0.0-...-1d51c9c Latest Latest
Warning

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

Go to latest
Published: Feb 23, 2024 License: MIT Imports: 7 Imported by: 0

README

Example Golang ssh client

  1. Define alias in ~/.ssh/config
Host example
User ubuntu
Hostname 10.11.11.11
IdentityFile ~/.ssh/id_rsa
ForwardAgent yes
  1. Run command whoami on remote host with alias example.
	conn := createConnection("example")
	runCommand("whoami", conn)
  defer conn.Close()

Install

go mod download

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

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