easyssh icon indicating copy to clipboard operation
easyssh copied to clipboard

Panic on execution

Open yaniveliash opened this issue 6 years ago • 1 comments

panic: Can't run remote command: ssh: must specify HostKeyCallback

yaniveliash avatar Aug 01 '17 12:08 yaniveliash

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
	},
}

katechun avatar Feb 21 '22 03:02 katechun