Hi all, I'm trying to write a simple ssh script and I'm seeing constant failure with:
Failed to dial: ssh: handshake failed: ssh: unable to authenticate, attempted methods [none], no supported methods remain.
I'm using the given example from the docs (
code.google.com/p/go.crypto/ssh) and adding in a username and password that I know works. I'm using go1.3.3 on Mac OSX 10.8.
I've tried running this against Mac and Linux and seeing the same failure. On Linux, I have OpenSSH installed.
I know that there are some issues with the supporting ciphers but I just don't know what's causing it. This is my config, I've added the ciphers. I don't know if thats helping or making it worst.
config := &ssh.ClientConfig{
User: "admin",
Auth: []ssh.AuthMethod{
ssh.Password("password"),
},
Config: ssh.Config{
Ciphers: []string{"aes128-ctr", "aes192-ctr", "aes256-ctr", "arcfour256", "arcfour128", "aes128-cbc", "3des-cbc", "blowfish-cbc", "cast128-cbc", "aes192-cbc", "aes256-cbc", "arcfour"},
},
}
Any help, suggestions is appreciative. Thanks in advance!