easyssh
easyssh copied to clipboard
Panic on execution
panic: Can't run remote command: ssh: must specify HostKeyCallback
Lack of these: HostKeyCallback: func(hostname string, remote net.Addr, key ssh.PublicKey) error { return nil },
modify file easyssh.go:
config := &ssh.ClientConfig{
User: ssh_conf.User,
Auth: auths,
HostKeyCallback: func(hostname string, remote net.Addr, key ssh.PublicKey) error {
return nil
},
}