Skip to content
This repository has been archived by the owner on Sep 9, 2022. It is now read-only.

kevsersrca/secureshell

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 

Repository files navigation

SSH Client Script

FOSSA Status

SSH Shell with Go Programming

Install

    go get github.com/kevsersrca/secureshell

Usage

    package main

    import(
        s"github.com/kevsersrca/secureshell"
    )
    func main() {
            client, err := s.ConnectWithKeyFile("localhost:22", "root", "/home/user/.ssh/id_rsa")
        	if err != nil {
        		panic(err)
        	}
        	defer client.Close()
        
        	output, err := client.Exec("uptime -p")
        	if err != nil {
        		panic(err)
        	}
        	fmt.Println(output)
    }

License

FOSSA Status

About

Ssh Connection and Exec Command Tool 😸

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages