Skip to content

ssh not working using password. #48

Description

@anannaya

I am able to do ssh using the password, But not using the go code.

username = "xxxxxxx"
passwords = []string{"026aaa9f-01fa-0850-095c-3d3daa0a4bd3", "4e58232c-2b79-cf4b-5e98-2bd6f0ba4946"}
fmt.Println(bastiondc)
fmt.Println(dchost)
easyconfig := &easyssh.MakeConfig{
	User:     username,
	Server:   dchost,
	Port:     "22",
	Password: passwords[1],
	Proxy: easyssh.DefaultConfig{
		User:     username,
		Server:   bastiondc,
		Port:     "22",
		Password: passwords[0],
	},
}

ssh: handshake failed: ssh: unable to authenticate, attempted methods [none publickey], no supported methods remain

goroutine 1 [running]:

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions