logman/main.go

29 lines
488 B
Go
Raw Normal View History

2019-08-13 09:48:47 -05:00
package main
2019-08-14 17:31:13 -05:00
import (
"fmt"
"golang.org/x/crypto/ssh"
)
2019-08-13 09:48:47 -05:00
func main() {
2019-08-13 10:01:26 -05:00
//fmt.Println("Hello!")
//var config Configuration
config := initializeConfig("config.yaml")
2019-08-14 17:31:13 -05:00
//fmt.Println(config.Hosts)
sshConn, sshConfig := initializeConnection(config)
2019-08-14 17:31:13 -05:00
//fmt.Println(sshConn.Hosts)
clientConns := sshConn.dialConnection(sshConfig)
fmt.Println(clientConns)
sshSuccess, err := ssh.Dial("tcp", "crash.local:22", sshConfig)
if err != nil {
panic(err)
}
fmt.Println(sshSuccess)
2019-08-13 09:48:47 -05:00
}