Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Panic on execution #29

Open
yaniveliash opened this issue Aug 1, 2017 · 1 comment
Open

Panic on execution #29

yaniveliash opened this issue Aug 1, 2017 · 1 comment

Comments

@yaniveliash
Copy link

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

@katechun
Copy link

katechun commented Feb 21, 2022

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants