Skip to content

Radisovik/go-ssh-client

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

go-ssh-client

This is a little pacakge helps you run command on remote host via SSH

import (
        ssh "github.com/metrue/go-ssh-client"
)

func main() {
	host := "127.0.0.1"
	output, err := New(host).
		WithUser("root").
		WithPassword("THEPASSWORDYOUCREATED").
		RunCommand("ls -a")
	if err != nil {
		t.Fatal(err)
	}
}

About

A handy ssh client

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Go 81.9%
  • Dockerfile 13.0%
  • Makefile 5.1%