omssh

package module
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Dec 22, 2019 License: MIT Imports: 4 Imported by: 0

README

oreno-mssh

v0.0.2 GoDoc license Go Report Card codecov

AWS mssh Tool wrapper

This project provides an interactive cli tool using ec2-instance-connect api to connect via ssh to ec2 instance.

  • select profile in your aws credentials
  • select ec2 instance id in list of ec2 intances gotten by credentials specified profile
  • ssh to ec2 instance by using ec2 instance connect api

Install

$ go get -u github.com/kenzo0107/omssh

LICENSE

The MIT License (MIT)

Copyright (c) 2019 Kenzo Tanaka

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConfigureSSHClient added in v0.0.3

func ConfigureSSHClient(user string, signer ssh.Signer) *ssh.ClientConfig

ConfigureSSHClient : configure ssh client

Types

type Device added in v0.0.3

type Device interface {
	SSHConnect(config *ssh.ClientConfig) error
	SetupIO()
	StartShell() error
	Close() error
}

Device : device interface

func NewDevice added in v0.0.3

func NewDevice(host, port string) Device

NewDevice : new SSH device

type SSHDevice added in v0.0.3

type SSHDevice struct {
	Host string
	Port string
	// contains filtered or unexported fields
}

SSHDevice : ssh device

func (*SSHDevice) Close added in v0.0.3

func (d *SSHDevice) Close() error

Close : close client

func (*SSHDevice) SSHConnect added in v0.0.3

func (d *SSHDevice) SSHConnect(config *ssh.ClientConfig) error

SSHConnect : ssh connect

func (*SSHDevice) SetupIO added in v0.0.3

func (d *SSHDevice) SetupIO()

SetupIO : set I/O

func (*SSHDevice) StartShell added in v0.0.3

func (d *SSHDevice) StartShell() error

StartShell : requests a pseudo terminal and starts the remote shell.

Directories

Path Synopsis
cmd
pkg

Jump to

Keyboard shortcuts

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