crypto/

directory
v0.0.0-...-5613f3b Latest Latest
Warning

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

Go to latest
Published: Nov 5, 2020 License: Apache-2.0

Directories

Path Synopsis
Package ssh provides a GOlang library for copying files and running commands over SSH ## Example “`go package main import ( "github.com/appscode/go/crypto/ssh" "log" "os" ) func main() { signer, err := ssh.MakePrivateKeySignerFromFile(os.ExpandEnv("$HOME/.ssh/id_rsa")) if err != nil { log.Fatal(err) } sout, serr, code, err := sshtools.Exec("ls -l /", "root", "<addr>:<port>", signer) log.Println(sout, serr, code, err) } “` ## Acknowledgement This library is based on code from: - https://github.com/kubernetes/kubernetes/tree/master/pkg/ssh - https://github.com/YuriyNasretdinov/GoSSHa
Package ssh provides a GOlang library for copying files and running commands over SSH ## Example “`go package main import ( "github.com/appscode/go/crypto/ssh" "log" "os" ) func main() { signer, err := ssh.MakePrivateKeySignerFromFile(os.ExpandEnv("$HOME/.ssh/id_rsa")) if err != nil { log.Fatal(err) } sout, serr, code, err := sshtools.Exec("ls -l /", "root", "<addr>:<port>", signer) log.Println(sout, serr, code, err) } “` ## Acknowledgement This library is based on code from: - https://github.com/kubernetes/kubernetes/tree/master/pkg/ssh - https://github.com/YuriyNasretdinov/GoSSHa

Jump to

Keyboard shortcuts

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