ssh报错 ssh: must specify HostKeyCallback

package main import ( "fmt" "golang.org/x/crypto/ssh" ) func main() { c := &ssh.ClientConfig{ User: "root", Auth: []ssh.AuthMethod{ ssh.Password("123456"), }, } _, err := ssh.Dial("tcp", "192.168.0.219:22", c) // replace...阅读全文

2017-04-15 04:49:03